You are here

function auto_expire_uninstall in Auto Expire 7

Same name and namespace in other branches
  1. 5 auto_expire.install \auto_expire_uninstall()

Implements hook_uninstall().

File

./auto_expire.install, line 60
Install, update and uninstall functions for the Auto Expire module.

Code

function auto_expire_uninstall() {

  // Remove tables.
  foreach (node_type_get_types() as $type => $name) {
    $code = AUTO_EXPIRE_NODE_TYPE . $type;
    variable_del($code . '_e');
    variable_del($code . '_d');
    variable_del($code . '_w');
    variable_del($code . '_p');
  }
  variable_del(AUTO_EXPIRE_EMAIL . 'warn_subject');
  variable_del(AUTO_EXPIRE_EMAIL . 'warn_body');
  variable_del(AUTO_EXPIRE_EMAIL . 'expired_subject');
  variable_del(AUTO_EXPIRE_EMAIL . 'expired_body');
}