You are here

function devel_reinstall_submit in Devel 7

Same name and namespace in other branches
  1. 5 devel.module \devel_reinstall_submit()
  2. 6 devel.module \devel_reinstall_submit()

Form submission callback for devel_reinstall().

File

./devel.pages.inc, line 158
Page callbacks for Devel.

Code

function devel_reinstall_submit($form, &$form_state) {

  // require_once './includes/install.inc';
  $modules = array_filter($form_state['values']['list']);
  module_disable($modules, FALSE);
  drupal_uninstall_modules($modules, FALSE);
  module_enable($modules, FALSE);
  drupal_set_message(t('Uninstalled and installed: %names.', array(
    '%names' => implode(', ', $modules),
  )));
}