You are here

variable_realm.install in Variable 7

Same filename and directory in other branches
  1. 7.2 variable_realm/variable_realm.install

Variable API module install file

File

variable_realm/variable_realm.install
View source
<?php

/**
 * @file
 * Variable API module install file
 */

/**
 * Implements hook_install()
 */
function variable_realm_install() {

  // Set module weight for it to run before most modules and initialize variable realms
  db_query("UPDATE {system} SET weight = -1000 WHERE name = 'variable_realm' AND type = 'module'");
}

/**
 * Refresh cache so new classes are found.
 */
function variable_realm_update_7000() {
  drupal_flush_all_caches();
}

Functions

Namesort descending Description
variable_realm_install Implements hook_install()
variable_realm_update_7000 Refresh cache so new classes are found.