The doc for http://drupaldocs.org/api/head/function/hook_taxonomy describes it as:
hook_taxonomy($op, $type, $object)
But it should actually be:
hook_taxonomy($op, $type, $object = NULL)
When hook_taxonomy is coded without the default third argument, errors are raised when debugging because the hook can be invoked without its third parameter (from module_invoke_all).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | core.php_taxonomy.patch | 3.76 KB | drewish |
Comments
Comment #1
drewish commentedYup, it looks like you're right. taxonomy.module:242 reads:
$extra = module_invoke_all('taxonomy', 'term', 'vocabulary');You could convince me though, that the bug is in the taxonomy module though...
Patch corrects the basics.
Comment #2
sepeck commenteddrupaldocs is decommed.