function media_youtube_variable_set in Media: YouTube 6
Same name and namespace in other branches
- 7 includes/media_youtube.variables.inc \media_youtube_variable_set()
Wrapper for variable_set() that uses 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()
4 calls to media_youtube_variable_set()
- media_youtube_update_6012 in ./
media_youtube.install - Rebuild youtube data to account for not saving raw by default.
- media_youtube_update_6014 in ./
media_youtube.install - Self-correct for missing thumbnails from a previous mistake.
- media_youtube_zend_path in ./
media_youtube.module - Return the path to the Zend library.
- _media_youtube_convert_old_variables in ./
media_youtube.install - Convert pre-existing variables to the Media: YouTube variable namespace.
File
- includes/
media_youtube.variables.inc, line 98 - Contains the variables and defaults used by Media: YouTube.
Code
function media_youtube_variable_set($name, $value) {
$variable_name = MEDIA_YOUTUBE_NAMESPACE . $name;
return variable_set($variable_name, $value);
}