You are here

function domain_uninstall in Domain Access 7.3

Same name and namespace in other branches
  1. 8 domain/domain.install \domain_uninstall()
  2. 5 domain.install \domain_uninstall()
  3. 6.2 domain.install \domain_uninstall()
  4. 7.2 domain.install \domain_uninstall()

Implements hook_uninstall().

File

./domain.install, line 82
Install file.

Code

function domain_uninstall() {
  $variables = array(
    'domain_bootstrap_modules',
    'domain_classes',
    'domain_cron_rule',
    'domain_debug',
    'domain_default_source',
    'domain_edit_on_primary',
    'domain_force_admin',
    'domain_grant_all',
    'domain_list_size',
    'domain_paths',
    'domain_search',
    'domain_select_format',
    'domain_sitename_override',
    'domain_seo',
    'domain_vertical_tab',
    'domain_www',
    'domain_xmlrpc_rule',
  );
  if (function_exists('node_type_get_types')) {
    $types = node_type_get_types();
    foreach ($types as $key => $type) {
      $variables[] = 'domain_node_' . $key;
    }
  }
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}