function views_slideshow_galleria_variable_get in Views Slideshow: Galleria 6
Wrapper for variable_get() for Views Slideshow: Galleria variable registry.
Parameters
string $name: The variable name to retrieve. Note that it will be namespaced by pre-pending VIEWS_SLIDESHOW_GALLERIA_NAMESPACE, as to avoid variable collisions with other modules.
unknown $default: An optional default variable to return if the variable hasn't been set yet. Note that within this module, all variables should already be set in the views_slideshow_galleria_variable_default() function.
Return value
unknown Returns the stored variable or its default.
See also
views_slideshow_galleria_variable_set()
views_slideshow_galleria_variable_del()
views_slideshow_galleria_variable_default()
3 calls to views_slideshow_galleria_variable_get()
- views_slideshow_galleria_path in ./
views_slideshow_galleria.module - Return the path to the Galleria plugin.
- views_slideshow_galleria_views_slideshow_options_form in ./
views_slideshow_galleria.views_slideshow.inc - Implements hook_views_slideshow_options_form().
- views_slideshow_galleria_views_slideshow_option_definition in ./
views_slideshow_galleria.views_slideshow.inc - Implements hook_views_slideshow_option_definition().
File
- includes/
views_slideshow_galleria.variables.inc, line 35 - Variable defaults for Views Slideshow: Galleria.
Code
function views_slideshow_galleria_variable_get($name, $default = NULL) {
// Allow for an override of the default.
// Useful when a variable is required (like $path), but namespacing is still
// desired.
if (!isset($default)) {
$default = views_slideshow_galleria_variable_default($name);
}
// Namespace all variables.
$variable_name = VIEWS_SLIDESHOW_GALLERIA_NAMESPACE . $name;
return variable_get($variable_name, $default);
}