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

Validates the submitted uninstall form.

Parameters

$form_id The form ID.:

$form_values Submitted form values.:

File

modules/system/system.module, line 1731
Configuration system that lets administrators modify the workings of the site.

Code

function system_modules_uninstall_validate($form_id, $form_values) {

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