function system_modules_uninstall_submit
system_modules_uninstall_submit($form, &$form_state)
Processes the submitted uninstall form.
File
- modules/system/system.admin.inc, line 1369
- Admin page callbacks for the system module.
Code
function system_modules_uninstall_submit($form, &$form_state) { // Make sure the install API is available. include_once DRUPAL_ROOT . '/includes/install.inc'; if (!empty($form['#confirmed'])) { // Call the uninstall routine for each selected module. $modules = array_keys($form_state['values']['uninstall']); drupal_uninstall_modules($modules); drupal_set_message(t('The selected modules have been uninstalled.')); $form_state['redirect'] = 'admin/modules/uninstall'; } else { $form_state['storage'] = $form_state['values']; $form_state['rebuild'] = TRUE; } }
© 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_submit/7.x