You are here

function file_styles_variable_set in Styles 7.2

Wrapper for variable_set() using the File Styles variable registry.

Parameters

string $name: The variable name to set. Note that it will be namespaced by pre-pending FILE_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

file_styles_variable_get()

file_styles_variable_del()

file_styles_variable_default()

1 call to file_styles_variable_set()
file_styles_preview_image in contrib/file_styles/file_styles.module
Return the path to the image for previews in Styles UI.

File

contrib/file_styles/includes/file_styles.variables.inc, line 63
file_styles/includes/file_styles.variables.inc Variable defaults for File Styles.

Code

function file_styles_variable_set($name, $value) {
  $variable_name = FILE_STYLES_NAMESPACE . $name;
  return variable_set($variable_name, $value);
}