function system_modules_uninstall_submit in Drupal 5
Same name and namespace in other branches
- 6 modules/system/system.admin.inc \system_modules_uninstall_submit()
- 7 modules/system/system.admin.inc \system_modules_uninstall_submit()
Processes the submitted uninstall form.
Parameters
$form_id The form ID.:
$form_values Submitted form values.:
File
- modules/
system/ system.module, line 1747 - Configuration system that lets administrators modify the workings of the site.
Code
function system_modules_uninstall_submit($form_id, $form_values) {
// Make sure the install API is available.
include_once './includes/install.inc';
// Call the uninstall routine for each selected module.
foreach (array_filter($form_values['uninstall']) as $module => $value) {
drupal_uninstall_module($module);
}
drupal_set_message(t('The selected modules have been uninstalled.'));
drupal_goto('admin/build/modules/uninstall');
}