hook_enable() and hook_disable() are mis-used. Replace with hook_uninstall()

jweowu - October 3, 2009 - 22:33
Project:Menu Breadcrumb
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Extracted from #556552: Menu weights, black/white list, and memory of menu selection

I've removed hook_enable() (which was redundant) and hook_disable() (which wasn't really appropriate). I moved the hook_disable() code to hook_uninstall() instead (with added entries for the new 'menu_breadcrumb_menus_filter' and 'menu_breadcrumb_menus').

AttachmentSize
mb_uninstall.patch1.68 KB

#1

dboulet - October 5, 2009 - 14:52
Status:needs review» reviewed & tested by the community

I agree with this, there is no reason to change settings when the module is enabled or disabled.

#2

xurizaemon - October 5, 2009 - 22:02
Status:reviewed & tested by the community» fixed

Thanks, patch accepted.

#3

System Message - October 19, 2009 - 22:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.