function system_modules_disable in Drupal 5
Same name and namespace in other branches
- 6 modules/system/system.admin.inc \system_modules_disable()
Form process callback function to disable check boxes.
File
- modules/
system/ system.module, line 1380 - Configuration system that lets administrators modify the workings of the site.
Code
function system_modules_disable($form, $edit, $disabled) {
foreach ($disabled as $key) {
$form[$key]['#attributes']['disabled'] = 'disabled';
}
return $form;
}