function devel_reinstall_submit
Same name in other branches
- 6.x-1.x devel.module \devel_reinstall_submit()
Form submission callback for devel_reinstall().
File
-
./
devel.pages.inc, line 158
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),
)));
}