You are here

function styles_variable_set in Styles 6

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

Wrapper for variable_set() using the Styles variable registry.

Parameters

string $name: The variable name to set. Note that it will be namespaced by pre-pending STYLES_NAMESPACE, as to avoid variable collisions with other modules.

unknown $value: The value for which to set the variable.

Return value

unknown Returns the stored variable after setting.

See also

styles_variable_get()

styles_variable_del()

styles_variable_default()

File

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

Code

function styles_variable_set($name, $value) {
  $variable_name = STYLES_NAMESPACE . $name;
  return variable_set($variable_name, $value);
}