You are here

function site_disclaimer_uninstall in Site Disclaimer 7

Same name and namespace in other branches
  1. 6 site_disclaimer.install \site_disclaimer_uninstall()

Implements hook_uninstall().

File

./site_disclaimer.install, line 12
Install, update and uninstall functions for the Site Disclaimer module.

Code

function site_disclaimer_uninstall() {

  // Delete variables.
  module_load_include('variable.inc', 'site_disclaimer');

  // for itweak_login_variable_info()
  foreach (array_keys(site_disclaimer_variable_info(array())) as $var) {
    variable_del($var);
  }
  variable_del('site_disclaimer_version');
  variable_del('site_disclaimer_allow_nodes');
}