function missing_module_remove_confirm in missing module 7
Menu callback: Confirm remove module.
1 string reference to 'missing_module_remove_confirm'
- missing_module_menu in ./
missing_module.module - Implements hook_menu().
File
- ./
missing_module.form.inc, line 60 - Contains form definitions for removing missing modules.
Code
function missing_module_remove_confirm($form, &$form_state, $module_name = FALSE) {
$form_state['missing_modules']['modules'] = missing_module_find_missing();
if (array_key_exists($module_name, $form_state['missing_modules']['modules'])) {
$form = confirm_form(array(), t('Remove the <strong><em>@module_name</em></strong>', array(
'@module_name' => $module_name,
)), 'admin/reports/status', t('NOTE: This only removes the @module_name module\'s superfluous record ' . 'from the system table. If the module had an .install file, it is likely ' . 'that there are lingering database tables and/or data created by the ' . 'module that need to be deleted by properly uninstalling it at ' . '/admin/modules/uninstall after redownloading the module code. <br><br>' . 'Are you sure you want to continue and remove the @module_name2 module ' . 'from the system table?', array(
'@module_name' => $module_name,
'@module_name2' => $module_name,
)), t('Remove module'), t('Cancel'));
}
else {
drupal_set_message(t('%module_name is not a missing module and cannot be disabled.', array(
'%module_name' => $module_name,
)), 'error');
// This will exit out of the function.
drupal_goto('admin/reports/status');
}
return $form;
}