You are here

function constant_contact_uninstall in Constant Contact 5

Same name and namespace in other branches
  1. 6.3 constant_contact.install \constant_contact_uninstall()
  2. 6 constant_contact.install \constant_contact_uninstall()
  3. 6.2 constant_contact.install \constant_contact_uninstall()
  4. 7.3 constant_contact.install \constant_contact_uninstall()

Implementation of hook_uninstall().

File

./constant_contact.install, line 14

Code

function constant_contact_uninstall() {
  $variables = array(
    'constant_contact_username',
    'constant_contact_password',
    'constant_contact_addurl',
    'constant_contact_delurl',
    'constant_contact_sendemail',
    'constant_contact_email_subject',
    'constant_contact_email_body',
    'constant_contact_allowanon',
    'constant_contact_lists',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
  db_query("DELETE FROM {variable} WHERE name LIKE 'constant_contact_blocktext_%'");
  cache_clear_all('*', 'cache', TRUE);
  cache_clear_all('*', 'cache_filter', TRUE);
  cache_clear_all('*', 'cache_menu', TRUE);
  cache_clear_all('*', 'cache_page', TRUE);
}