function system_modules_disable

6.x system.admin.inc system_modules_disable($form, $edit)

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 drupal-6.x/modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.

File

drupal-6.x/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;
}