You are here

function media_variable_set in D7 Media 7

Wrapper for variable_set() that uses the Media variable registry.

Parameters

string $name: The variable name to set. Note that it will be namespaced by pre-pending MEDIA_VARIABLE_NAMESPACE, as to avoid variable collisions with other modules. @param unknown $value The value for which to set the variable. @return unknown Returns the stored variable after setting.

@see media_variable_get() @see media_variable_del() @see media_variable_default()

2 calls to media_variable_set()
media_install in ./media.install
Implements hook_install().
media_update_7003 in ./media.install
We now prefix media namespaced variables with media__, so fix old variables.

File

includes/media.variables.inc, line 69
Contains the variables used by media and their defaults.

Code

function media_variable_set($name, $value) {
  $variable_name = MEDIA_VARIABLE_NAMESPACE . $name;
  return variable_set($variable_name, $value);
}