You are here

function media_vimeo_variable_set in Media: Vimeo 6

Same name and namespace in other branches
  1. 7 includes/media_vimeo.variables.inc \media_vimeo_variable_set()

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

Parameters

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

media_vimeo_variable_get()

media_vimeo_variable_del()

media_vimeo_variable_default()

1 call to media_vimeo_variable_set()
_media_vimeo_migrate_variable in ./media_vimeo.install
Migrate a variable from the old namespace.

File

includes/media_vimeo.variables.inc, line 81
media_vimeo/includes/media_vimeo.variables.inc Contains the variables and defaults used by Media: Vimeo.

Code

function media_vimeo_variable_set($name, $value) {
  $variable_name = MEDIA_VIMEO_NAMESPACE . $name;
  return variable_set($variable_name, $value);
}