You are here

protected function Vars::getDefaults in Variable API 6

Same name and namespace in other branches
  1. 6.2 vars.module \Vars::getDefaults()
  2. 7.2 vars.classes.inc \Vars::getDefaults()
  3. 7 vars.module \Vars::getDefaults()

Returns the default value for the variables used by the module.

A module using Variable API should normally implement a class derived from Vars, and overwrite this method.

Return value

An array containing information about the implemented persistent variables.

See also

Vars::saveDefaults()

1 call to Vars::getDefaults()
Vars::saveDefaults in ./vars.module
Saves the default value for the variables defined from the module.
2 methods override Vars::getDefaults()
VarsExtendedTestVars::getDefaults in tests/vars_extended_test.module
Returns the default value for the variables used by the module.
VarsTestVars::getDefaults in tests/vars_test.module
Returns the default value for the variables used by the module.

File

./vars.module, line 89
Implement an API to handle persistent variables.

Class

Vars
@file Implement an API to handle persistent variables.

Code

protected function getDefaults() {
  return array();
}