function missing_module_disable_confirm in missing module 7
Menu callback: Confirm disabling module.
1 string reference to 'missing_module_disable_confirm'
- missing_module_menu in ./
missing_module.module - Implements hook_menu().
File
- ./
missing_module.form.inc, line 10 - Contains form definitions for removing missing modules.
Code
function missing_module_disable_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('Disable missing module <strong><em>@module_name</em></strong>', array(
'@module_name' => $module_name,
)), 'admin/reports/status', t('This does not remove the missing module\'s superfluous record from the system ' . 'table, and it does not remove any lingering tables and/or data generated ' . 'from the database. <br><br>Are you sure you want to disable the ' . 'missing @module_name module?', array(
'@module_name' => $module_name,
)), t('Disable 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;
}