You are here

function styles_variable_default in Styles 6

Same name and namespace in other branches
  1. 6.2 includes/styles.variables.inc \styles_variable_default()
  2. 7.2 includes/styles.variables.inc \styles_variable_default()

The default variables within the Styles namespace.

Parameters

string $name: Optional variable name to retrieve the default. Note that it has not yet been pre-pended with the STYLES_NAMESPACE namespace at this time.

Return value

unknown The default value of this variable, if it's been set, or NULL, unless $name is NULL, in which case we return an array of all default values.

See also

styles_variable_get()

styles_variable_set()

styles_variable_del()

2 calls to styles_variable_default()
styles_uninstall in ./styles.install
Implement hook_uninstall().
styles_variable_get in includes/styles.variables.inc
Wrapper for variable_get() using the Styles variable registry.

File

includes/styles.variables.inc, line 124
styles.variables.inc Variable defaults for Styles.

Code

function styles_variable_default($name = NULL) {
  static $defaults;
  if (!isset($defaults)) {
    $defaults = array();
  }
  if (!isset($name)) {
    return $defaults;
  }
  if (isset($defaults[$name])) {
    return $defaults[$name];
  }
}