You are here

vars_test.install in Variable API 6

Install, update and uninstall functions for the Variable API test module.

File

tests/vars_test.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Variable API test module.
 */

/**
 * Implements hook_install().
 */
function vars_test_install() {
  drupal_load('module', 'vars_test');
  $vars = new VarsTestVars();
  $vars
    ->saveDefaults();
}

/**
 * Implements hook_uninstall().
 */
function vars_test_uninstall() {
  drupal_load('module', 'vars_test');
  $vars = new VarsTestVars();
  $vars
    ->removeDefaults();
}

Functions

Namesort descending Description
vars_test_install Implements hook_install().
vars_test_uninstall Implements hook_uninstall().