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).

CommentFileSizeAuthor
#1 core.php_taxonomy.patch3.76 KBdrewish

Comments

drewish’s picture

StatusFileSize
new3.76 KB

Yup, 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.

sepeck’s picture

Status: Active » Closed (fixed)

drupaldocs is decommed.