You are here

function mailhandler_uninstall in Mailhandler 6

Same name and namespace in other branches
  1. 6.2 mailhandler.install \mailhandler_uninstall()
  2. 7 mailhandler.install \mailhandler_uninstall()

Implementation of hook_uninstall().

File

./mailhandler.install, line 22
Install, uninstall, schema and update functions for Mailhandler module.

Code

function mailhandler_uninstall() {

  // Remove module variables.
  $variables = array(
    'mailhandler_default_type',
    'mailhandler_max_retrieval',
    'mailhandler_default_encoding',
    'mailhandler_watchdog_level',
  );
  foreach ($variables as $varname) {
    variable_del($varname);
  }
  drupal_uninstall_schema('mailhandler');
}