function system_modules_uninstall_validate in Drupal 5
Same name and namespace in other branches
- 6 modules/system/system.admin.inc \system_modules_uninstall_validate()
- 7 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');
}
}