You are here

function devel_reinstall in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \devel_reinstall()
  2. 7 devel.pages.inc \devel_reinstall()

Menu callback; Display a list of installed modules with the option to reinstall them via hook_install.

2 string references to 'devel_reinstall'
devel_menu in ./devel.module
Implementation of hook_menu().
devel_reinstall_form in ./devel.module

File

./devel.module, line 899

Code

function devel_reinstall() {
  $output = '';
  $modules = module_list();
  sort($modules);
  foreach ($modules as $module) {
    $output .= drupal_get_form('devel_reinstall_' . $module, $module);
  }
  drupal_set_message(t('Warning - will delete your module tables and variables.'), 'error');
  return $output;
}