Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
taxonomy_del_term is passing it's third arg as an object when it invokes hook taxonomy--this makes the delete case of hook_taxonomy inconsistent, which is reflected in forum_taxonomy--it won't work properly ATM. attached patch replaces the recently removed array cast in taxonomy_del_term, changes forum_taxonomy to use an array instead of an object, and removes a bit of extra whitespace. casting to an array makes the most sense here since all other cases of hook_taxonomy have their third arg as an array...
Comment | File | Size | Author |
---|---|---|---|
taxo_forum.patch | 2.7 KB | hunmonk | |
Comments
Comment #1
dopry CreditAttribution: dopry commentedThere are several other places where the cast as array has been done. Form API uses arrays, php post is an array... (why do we use objects at all?) On a visual inspection everything seems in order. Hunmonk says it works. I don't have forums setup anywhere to test right now.
+1.
Comment #2
Steven CreditAttribution: Steven commentedAll other taxonomy ops use arrays. +1.
Committed to HEAD.
Comment #3
(not verified) CreditAttribution: commented