Contrib Toggle

dbabbage - January 9, 2009 - 12:13

When upgrading between Drupal core versions (e.g. 6.8 to 6.9) it is recommended that all non-core modules ("contrib modules") are deactivated first. When you have modules with multiple dependencies, this is a needlessly time-consuming and fiddly process. The Contrib Toggle module provides a button on the module configuration page (/admin/build/modules/) to mark all contrib modules for deactivation, reducing this process a simple two-click exercise. Click the "Disable Contrib" button, then click "Save Configuration" to actually disable the modules. Contrib Toggle automatically disables itself in this process.

Between core upgrades, Contrib Toggle also provides an mechanism for dynamic activation and deactivation of modules with dependencies. When Contrib Toggle is active, all modules on the module admin page can be activated and deactivated. Activating a module will prompt you whether you wish to activate any other modules it depends on. Deactivating a module will likewise prompt whether you wish to deactivate any modules that depend on it.

Warning: Disabling all contrib modules may disable key functionality of your site and undermine security provisions beyond those built into Drupal core that you have added using contributed modules. Disabling all contrib modules should therefore only be done when your site is in maintenance mode or if you are sure you know what you are doing.

Latest News

Contrib Toggle v1.3: Implements javascript alerts for confirmation of dynamic activation of required modules and deactivation of dependent modules. Note that while Contrib Toggle v1.3 beta 1 used a patched version of jQuery plugins for this functionality, this has now been built directly into Contrib Toggle. jQuery plugins is no longer required by Contrib Toggle.

Inter-module compatibility

I am motivated to proactively test Contrib Toggle against any contributed modules that modify the Drupal's module activation and deactivation form, as they have the potential to be incompatible with Contrib Toggle. If you are aware of any module that modifies that form, please create a "Task" in the Contrib Toggle issue queue providing a link to the module. I will undertake testing and report results, making any changes to Contrib Toggle that may be required to ensure interoperability.

Roadmap:

It is intended that Contrib Toggle v2.0 will provide a facility to store your active modules selection for easy reactivation after the core upgrade.

Releases

Official releasesDateSizeLinksStatus
6.x-1.32009-Feb-0417.18 KBRecommended for 6.xThis is currently the recommended release for 6.x.


 
 

Drupal is a registered trademark of Dries Buytaert.