diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-09 10:39:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-09 10:39:15 +0000 |
commit | fd96728f3ca312214c4e2ff58649a8ae338b1754 (patch) | |
tree | d4deaddca360211b1917544ecc347c0b13e66431 /modules/system/system.module | |
parent | 6f30f02c16bdbda14a38e574ba79faa28b0e2487 (diff) | |
download | brdo-fd96728f3ca312214c4e2ff58649a8ae338b1754.tar.gz brdo-fd96728f3ca312214c4e2ff58649a8ae338b1754.tar.bz2 |
- Second batch of form API fixes by chx.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 8be2b1749..874bffbfd 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -829,10 +829,9 @@ function system_modules() { } - /** - * Handle status checkboxes, including overriding the generated checkboxes for required modules. - */ - $form['status'] = array(type => 'checkboxes', default_value => $status, options => $options, tree => TRUE); + // Handle status checkboxes, including overriding the generated + // checkboxes for required modules. + $form['status'] = array(type => 'checkboxes', default_value => $status, options => $options, tree => TRUE); $required = array('block', 'filter', 'system', 'user', 'watchdog'); foreach ($required as $require) { $form['status'][$require] = array(type => 'hidden', value => 1, suffix => t('required')); @@ -879,11 +878,11 @@ function theme_system_modules($form) { function system_modules_execute($form_id, $edit) { - db_query("update {system} set status = 0, throttle = 0 where type = 'module'"); + db_query("UPDATE {system} SET status = 0, throttle = 0 WHERE type = 'module'"); foreach ($edit['status'] as $key => $choice) { if ($choice) { - db_query("update {system} set status = 1 where type = 'module' and name = '%s'", $key); + db_query("UPDATE {system} SET status = 1 WHERE type = 'module' AND name = '%s'", $key); } } |