Community Documentation

Enable or disable a module

Last updated November 8, 2008. Created by Jody Lynn on February 24, 2006.
Edited by Heine, Uwe Hermann, nedjo. Log in to edit this page.

The following snippets enable or disable a module. If installing a module causes a problem which prevents your ability to administer modules to disable it, you can disable the module in your database.

Enable the module with the name example:

UPDATE `system` SET status=1 WHERE name='example';

Disable the module example:

UPDATE `system` SET status=0 WHERE name='example';

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 4.6.x, Drupal 4.7.x, Drupal 5.x, Drupal 6.x

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here