vars_test.install in Variable API 7
Same filename and directory in other branches
Install, update and uninstall functions for the Variable API test module.
File
tests/vars_test.installView 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
Name | Description |
---|---|
vars_test_install | Implements hook_install(). |
vars_test_uninstall | Implements hook_uninstall(). |