You are here

function views_slideshow_galleria_variable_default in Views Slideshow: Galleria 6

The default variables within the Views Slideshow: Galleria namespace.

Parameters

string $name: Optional variable name to retrieve the default. Note that it has not yet been pre-pended with the VIEWS_SLIDESHOW_GALLERIA_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

views_slideshow_galleria_variable_get()

views_slideshow_galleria_variable_set()

views_slideshow_galleria_variable_del()

2 calls to views_slideshow_galleria_variable_default()
views_slideshow_galleria_uninstall in ./views_slideshow_galleria.install
Implementation of hook_uninstall().
views_slideshow_galleria_variable_get in includes/views_slideshow_galleria.variables.inc
Wrapper for variable_get() for Views Slideshow: Galleria variable registry.

File

includes/views_slideshow_galleria.variables.inc, line 100
Variable defaults for Views Slideshow: Galleria.

Code

function views_slideshow_galleria_variable_default($name = NULL) {
  static $defaults;
  if (!isset($defaults)) {
    $defaults = array(
      'history' => 0,
      'theme' => 'classic',
      'custom_theme' => '',
      'theme_path' => '',
      'autoplay' => 0,
      'autoplay_ms' => 3000,
      'carousel' => TRUE,
      'carousel_speed' => 200,
      'carousel_steps' => 'auto',
      'data_config' => '',
      'data_image_selector' => 'img',
      'data_source' => '',
      'data_type' => 'auto',
      'debug' => 0,
      'extend' => '',
      'height' => 'auto',
      'image_crop' => 0,
      'image_margin' => 0,
      'image_position' => 'center',
      'keep_source' => 0,
      'max_scale_ratio' => '',
      'on_image' => '',
      'popup_links' => 0,
      'preload' => 2,
      'queue' => TRUE,
      'show' => 0,
      'thumb_crop' => TRUE,
      'thumb_margin' => 0,
      'thumb_quality' => TRUE,
      'thumbnails' => TRUE,
      'transition' => 'fade',
      'transition_speed' => 400,
      'avoid_flash_of_content' => TRUE,
    );
  }
  if (!isset($name)) {
    return $defaults;
  }
  if (isset($defaults[$name])) {
    return $defaults[$name];
  }
}