Deactivate?

lazarus - September 2, 2006 - 18:31
Project:Administration
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

How exactly can I deactivate this module and remove all trace of it from my site?

First it removed my admin menu completely, so I have to type in admin url's from memory. Then it presented menu options that do nothing when I change them - Configuration Profile and Administration Menus. There is no "Deactivate" button, as the instructions suggest. Of course, just deleting or deactivating the module doesn't help. Updating to CVS didn't help.

As a side note, if I were coding this module, I would make sure the other method calls didn't fail, which here some do, (administration_module_config()) before I called the method that would hide the admin menu.

#1

bradnickel - September 12, 2006 - 18:00

Yeah, this was obviously poorly designed, if it does not return your site to previous state if you deactivate it. Ridiculous.

Has anyone tried any other ways?

Brad

#2

bradnickel - September 12, 2006 - 18:02

Is there a log of the changes it makes to your site, so maybe we can manually wipe out the changes?

#3

der - September 12, 2006 - 18:14

Before turning off the module you need to go to admin/settings/administration and "deactivate" it. This "deactivation" will reset your menus. This could not be done when you just turn the module off from admin/modules as Drupal does not provide any hooks at module turn off time.

If you didn't deactivate the module first then you will need to reset the menus yourself.

If you're using 4.6 then you can go to admin/menu/reset and reset all the menus. This should get all your original menus back but it's has the undesirable side affect of wiping out any custom menus or menu entries you may have made.

If you are using 4.7 then you can go in a delete all the rows in the menu table. Drupal will rebuild the menus from all the module menu hooks.

 
 

Drupal is a registered trademark of Dries Buytaert.