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

AttachmentSize
project_hook_taxonomy_0.patch1000 bytes

#1

dww - June 11, 2008 - 04:44
Status:patch (code needs review)» fixed

Reviewed and committed to DRUPAL-5 and HEAD. Thanks!

#2

Anonymous (not verified) - June 25, 2008 - 04:53
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.