function subscriptions_mail_uninstall in Subscriptions 2.0.x
Same name and namespace in other branches
- 5.2 subscriptions_mail.install \subscriptions_mail_uninstall()
- 6 subscriptions_mail.install \subscriptions_mail_uninstall()
- 7 subscriptions_mail.install \subscriptions_mail_uninstall()
Implements hook_uninstall().
File
- subscriptions_mail/
subscriptions_mail.install, line 38 - Subscriptions Mail module installation.
Code
function subscriptions_mail_uninstall() {
// Remove column from {mail_edit} table.
$new_schema = array();
module_load_include('module', 'subscriptions_mail');
subscriptions_mail_schema_alter($new_schema);
foreach ($new_schema['mail_edit']['fields'] as $name => $spec) {
db_drop_field('mail_edit', $name);
}
variable_del('subscriptions_mail_trash_silently');
variable_del('subscriptions_number_of_mails');
variable_del('subscriptions_site_mail_name');
variable_del('subscriptions_site_mail');
variable_del('subscriptions_watchall');
variable_del('subscriptions_watchgood');
variable_del('subscriptions_watchstats');
}