You are here

location_node.install in Location 7.3

Install, update and uninstall functions for the location_node module.

File

location_node.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the location_node module.
 */

/**
 * Implentation of hook_uninstall().
 */
function location_node_uninstall() {

  // Delete node settings.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_settings_node_%'")
    ->fetchCol();
  foreach ($result as $var) {
    variable_del($var);
  }

  // Delete compatibility variables.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_maxnum_%'")
    ->fetchCol();
  foreach ($result as $var) {
    variable_del($var);
  }
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_defaultnum_%'")
    ->fetchCol();
  foreach ($result as $var) {
    variable_del($var);
  }
}

Functions

Namesort descending Description
location_node_uninstall Implentation of hook_uninstall().