You are here

function emapi_variable_set in Embedded Media Field 6.3

Wrapper for variable_set() using the Embedded Media API variable registry.

Parameters

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

emapi_variable_get()

emapi_variable_del()

emapi_variable_default()

File

emapi/includes/emapi.variables.inc, line 65
Contains the variables and defaults used by Embedded Media API.

Code

function emapi_variable_set($name, $value) {
  $variable_name = EMAPI_NAMESPACE . $name;
  return variable_set($variable_name, $value);
}