Poor category_menu_delete_item has both a very inefficient function signature and downright wrong documentation.
After doing some research, it seems the documentation has been wrong since revision 1.3, when the second parameter was removed!
Changing the API to be more in line with the mapping stuff: Pass in nid's instead of nodes.
Patch against CVS. 4.7 version shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | category_menu.module-speedup1-4.7.patch | 2.81 KB | bdragon |
| category_menu.module-speedup1-cvs.patch | 2.8 KB | bdragon |
Comments
Comment #1
bdragon commentedDidn't have any conflicts, so this was faster than expected :-)
Here's the DRUPAL-4-7 version.
Comment #2
TheWhippinpost commentedWhen deleting a category, I got an error page citing an, !Illegal offset! which was reported as emanating from line 646 of the category_menu.module.
Removing the above patch (category_menu.module-speedup1-4.7.patch) fixed the error.
HTH