vars_test.module in Variable API 6
Same filename and directory in other branches
Module for testing the Variable API module.
File
tests/vars_test.moduleView source
<?php
/**
* @file
*
* Module for testing the Variable API module.
*/
class VarsTestVars extends Vars {
public function __construct() {
parent::__construct('vars_test', array(
'sysVars' => array(
'menu_rebuild_needed' => FALSE,
),
));
}
public function getDefaults() {
return array(
'vars_test_first' => array(
'value' => 100,
),
'vars_test_second' => array(
'value' => 200,
),
'vars_test_third' => array(
'value' => 300,
),
'vars_test_fourth' => array(
'value' => array(
400,
),
),
'vars_test_fifth' => array(
'value' => array(
'abcdefghil',
),
),
);
}
}
Classes
Name | Description |
---|---|
VarsTestVars | @file |