devel_reinstall($form, &$form_state)Display a dropdown of installed modules with the option to reinstall them.
sites/all/modules/devel/devel.module, line 1124
<?php
function devel_reinstall($form, &$form_state) {
$output = '';
$modules = module_list();
sort($modules);
$options = drupal_map_assoc($modules);
$form['list'] = array(
'#type' => 'checkboxes',
'#options' => $options,
'#description' => t('Uninstall and then install the selected modules. <code>hook_uninstall()</code> and <code>hook_install()</code> will be executed and the schema version number will be set to the most recent update number. You may have to manually clear out any existing tables first if the module doesn\'t implement <code>hook_uninstall()</code>.'),
);
$form['submit'] = array(
'#value' => t('Reinstall'),
'#type' => 'submit',
);
if (empty($form_state['post'])) {
drupal_set_message(t('Warning - will delete your module tables and variables.'), 'error');
}
return $form;
}
?>