function system_modules_uninstall_validate
system_modules_uninstall_validate($form, &$form_state)
Validates the submitted uninstall form.
File
- modules/system/system.admin.inc, line 1358
- 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/modules/uninstall'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_modules_uninstall_validate/7.x