yihui/knitr — pull request #733 by Thell (2014-03-12 16:47:41+00:00)
Title: hooks-chunk.R::run_hooks - Add the hook name to options.

- Generic hook functions should have a way to know which param was used to trigger them.

Signed-off-by: Thell Fowler

Yihui,
If a third party package provides a function for a document author to use then the document author should be free to name the param as they desire and the hook function should be allowed to discover that name.

If you need any convincing just say the word.