You are here

vars_extended_test.install in Variable API 7

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

File

tests/vars_extended_test.install
View source
<?php

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

/**
 * Implements hook_install().
 */
function vars_extended_test_install() {
  drupal_load('module', 'vars_extended_test');
  $vars = new VarsExtendedTestVars();
  $vars
    ->saveDefaults();
}

/**
 * Implements hook_uninstall().
 */
function vars_extended_test_uninstall() {
  drupal_load('module', 'vars_extended_test');
  $vars = new VarsExtendedTestVars();
  $vars
    ->removeDefaults();
}

Functions