You are here

public function VarsTestVars::__construct in Variable API 6

Same name and namespace in other branches
  1. 6.2 tests/vars_test.module \VarsTestVars::__construct()
  2. 7.2 tests/vars_test.module \VarsTestVars::__construct()
  3. 7 tests/vars_test.module \VarsTestVars::__construct()

Constructs a Vars object.

Parameters

$module: The name of the module that implements the class.

$options: An array of options. The currently defined option is 'sysVars', used to define the default values for variables defined from modules not using Variable API.

Overrides Vars::__construct

File

tests/vars_test.module, line 10
Module for testing the Variable API module.

Class

VarsTestVars
@file

Code

public function __construct() {
  parent::__construct('vars_test', array(
    'sysVars' => array(
      'menu_rebuild_needed' => FALSE,
    ),
  ));
}