[documentation] [bug] Parameter error in hook_taxonomy

drewish drupal-docs at drupal.org
Mon Dec 19 07:31:12 UTC 2005


Issue status update for 
http://drupal.org/node/41611
Post a follow up: 
http://drupal.org/project/comments/add/41611

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  fgm
 Updated by:   drewish
 Status:       active
 Attachment:   http://drupal.org/files/issues/core.php_taxonomy.patch (3.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.




drewish



Previous comments:
------------------------------------------------------------------------

Sun, 18 Dec 2005 19:32:55 +0000 : fgm

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






More information about the documentation mailing list