You are here

location_addanother.install in Location 5.3

Installation routines for location_addanother.

File

contrib/location_addanother/location_addanother.install
View source
<?php

/**
 * @file
 * Installation routines for location_addanother.
 */

/**
 * Implementation of hook_install().
 */
function location_addanother_install() {

  // Change weight so we execute after location.
  db_query("UPDATE {system} SET weight = 1 WHERE name = '%s' AND type = '%s'", 'location_addanother', 'module');
}

/**
 * Implementation of hook_uninstall().
 */
function location_addanother_uninstall() {
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_addanother_%'");
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
}

Functions

Namesort descending Description
location_addanother_install Implementation of hook_install().
location_addanother_uninstall Implementation of hook_uninstall().