function system_modules_disable in Drupal 6
Same name and namespace in other branches
- 5 modules/system/system.module \system_modules_disable()
Form process callback function to disable check boxes.
Parameters
$form: The form structure.
$edit: Not used.
Return value
The form structure.
Related topics
1 string reference to 'system_modules_disable'
- system_modules in modules/
system/ system.admin.inc - Menu callback; provides module enable/disable interface.
File
- modules/
system/ system.admin.inc, line 817 - Admin page callbacks for the system module.
Code
function system_modules_disable($form, $edit) {
foreach ($form['#disabled_modules'] as $key) {
$form[$key]['#attributes']['disabled'] = 'disabled';
}
return $form;
}