You are here

function system_modules_uninstall_validate in Drupal 6

Same name and namespace in other branches
  1. 5 modules/system/system.module \system_modules_uninstall_validate()
  2. 7 modules/system/system.admin.inc \system_modules_uninstall_validate()

Validates the submitted uninstall form.

File

modules/system/system.admin.inc, line 1118
Admin page callbacks for the system module.

Code

function system_modules_uninstall_validate($form, &$form_state) {

  // Form submitted, but no modules selected.
  if (!count(array_filter($form_state['values']['uninstall']))) {
    drupal_set_message(t('No modules selected.'), 'error');
    drupal_goto('admin/build/modules/uninstall');
  }
}