function media_youtube_variable_set in Media: YouTube 7
Same name and namespace in other branches
- 6 includes/media_youtube.variables.inc \media_youtube_variable_set()
Wrapper for variable_set() using the Media: YouTube variable registry.
Parameters
string $name: The variable name to set. Note that it will be namespaced by pre-pending MEDIA_YOUTUBE_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_youtube_variable_default()
File
- includes/
media_youtube.variables.inc, line 63 - media_youtube/includes/media_youtube.variables.inc Variable defaults for Media: YouTube.
Code
function media_youtube_variable_set($name, $value) {
$variable_name = MEDIA_YOUTUBE_NAMESPACE . $name;
return variable_set($variable_name, $value);
}