system_modules_uninstall_validate

Versions
5
system_modules_uninstall_validate($form_id, $form_values)
6 – 7
system_modules_uninstall_validate($form, &$form_state)

Validates the submitted uninstall form.

Code

modules/system/system.admin.inc, line 1176

<?php
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/config/modules/uninstall');
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.