1 system.admin.inc system_modules_uninstall_validate($form, &$form_state)

Validates the submitted uninstall form.

File

core/modules/system/system.admin.inc, line 1202
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']))) {
    backdrop_set_message(t('No modules selected.'), 'error');
    backdrop_goto('admin/modules/uninstall');
  }
}