hook_taxonomy() no longer should take an object as a parameter
aclight - May 10, 2008 - 17:22
| Project: | Project |
| Version: | 5.x-1.x-dev |
| Component: | Projects |
| Category: | bug report |
| Priority: | normal |
| Assigned: | aclight |
| Status: | closed |
Jump to:
Description
It seems that between D4.7 and D5, hook_taxonomy() was modified such that instead of taking an object as the third parameter, it takes an array. This change wasn't listed in the documentation pages for upgrading modules (at http://drupal.org/node/64279), so it's no surprised the change was missed. There's no real consequence on D5, other than the fact that it causes notices.
The attached patch fixes the problem, such as it is. Tested on a local site and it looks fine.
| Attachment | Size |
|---|---|
| project_hook_taxonomy_0.patch | 1000 bytes |

#1
Reviewed and committed to DRUPAL-5 and HEAD. Thanks!
#2
Automatically closed -- issue fixed for two weeks with no activity.