function media_flickr_variable_default in Media: Flickr 7
The default variables within the Media: Flickr namespace.
Parameters
string $name: Optional variable name to retrieve the default. Note that it has not yet been pre-pended with the MEDIA_FLICKR_NAMESPACE namespace at this time.
Return value
unknown The default value of this variable, if it's been set, or NULL, unless $name is NULL, in which case we return an array of all default values.
See also
3 calls to media_flickr_variable_default()
- media_flickr_uninstall in ./
media_flickr.install - Implements hook_uninstall().
- media_flickr_update_7002 in ./
media_flickr.install - We now namespace variables with a prefix, so fix old variables.
- media_flickr_variable_get in includes/
media_flickr.variables.inc - Wrapper for variable_get() using the Media: Flickr variable registry.
File
- includes/
media_flickr.variables.inc, line 98 - Variable defaults for Media: Flickr.
Code
function media_flickr_variable_default($name = NULL) {
static $defaults;
if (!isset($defaults)) {
$defaults = array(
'width' => 560,
'height' => 340,
'autoplay' => FALSE,
'preview_uri' => 'flickr://u/56854677@N02/p/5247285379',
'api_key' => '',
'api_secret' => '',
);
}
if (!isset($name)) {
return $defaults;
}
if (isset($defaults[$name])) {
return $defaults[$name];
}
}