[documentation] [bug] Parameter error in hook_taxonomy

fgm drupal-docs at drupal.org
Sun Dec 18 19:32:55 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:   fgm
 Status:       active

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




fgm



More information about the documentation mailing list