You are here

location_views.install in Location 5.3

Installation routines for location_views.

File

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

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

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

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

/**
 * Implementation of hook_uninstall().
 */
function location_views_uninstall() {
}

/**
 * Location 3.0 update 1.
 * Change weight of module.
 */
function location_views_update_5300() {
  $ret = array();

  // Change weight.
  $ret[] = update_sql("UPDATE {system} SET weight = 1 WHERE name = '%s' AND type = '%s'", 'location_views', 'module');
  return $ret;
}

Functions

Namesort descending Description
location_views_install Implementation of hook_install().
location_views_uninstall Implementation of hook_uninstall().
location_views_update_5300 Location 3.0 update 1. Change weight of module.