You are here

function splashify_uninstall in Splashify 7

Same name and namespace in other branches
  1. 6 splashify.install \splashify_uninstall()

Implements hook_uninstall().

Deletes all of the variables this module creates via variable_set().

File

./splashify.install, line 72
Handles installing, uninstalling and the requirements for Splashify.

Code

function splashify_uninstall() {
  variable_del('splashify_when_anonymous');
  variable_del('disable_referrer_check');

  // Desktop variables.
  variable_del('splashify_when_desktop_frequency');
  variable_del('splashify_where_desktop_page');
  variable_del('splashify_where_desktop_listpages');
  variable_del('splashify_where_desktop_opposite');
  variable_del('splashify_what_desktop_mode');
  variable_del('splashify_what_desktop_content');
  variable_del('splashify_what_desktop_pagetitle');
  variable_del('splashify_how_desktop_mode');
  variable_del('splashify_how_desktop_size');
  variable_del('splashify_when_roles');
  variable_del('splashify_when_roles_options');

  // Mobile variables.
  variable_del('splashify_when_mobile');
  variable_del('splashify_when_mobile_test');
  variable_del('splashify_when_mobile_frequency');
  variable_del('splashify_where_mobile_page');
  variable_del('splashify_where_mobile_listpages');
  variable_del('splashify_where_mobile_opposite');
  variable_del('splashify_what_mobile_mode');
  variable_del('splashify_what_mobile_content');
  variable_del('splashify_what_mobile_pagetitle');
  variable_del('splashify_how_mobile_mode');
}