function forward_uninstall in Forward 7.3
Same name and namespace in other branches
- 8.3 forward.install \forward_uninstall()
- 8 forward.install \forward_uninstall()
- 8.2 forward.install \forward_uninstall()
- 5 forward.install \forward_uninstall()
- 6 forward.install \forward_uninstall()
- 7 forward.install \forward_uninstall()
- 7.2 forward.install \forward_uninstall()
- 4.x forward.install \forward_uninstall()
- 4.0.x forward.install \forward_uninstall()
Implements hook_uninstall().
File
- ./
forward.install, line 73 - Install, update and uninstall functions for the forward module.
Code
function forward_uninstall() {
// Remove variables
global $conf;
foreach (array_keys($conf) as $key) {
// Find variables that have the module prefix
if (strpos($key, 'forward_') === 0) {
variable_del($key);
}
}
// Remove mail system
$mail_systems = variable_get('mail_system', array(
'default-system' => 'DefaultMailSystem',
));
unset($mail_systems['forward']);
variable_set('mail_system', $mail_systems);
// Warn administrator
if (module_exists('mailsystem')) {
$link = l(t('Review or change your mail setup.'), 'admin/config/system/mailsystem', array());
drupal_set_message(t('The mail system for Forward has been removed. ') . $link, 'warning');
}
}