function photoswipe_get_default_settings in PhotoSwipe 7
Same name and namespace in other branches
- 7.2 photoswipe.module \photoswipe_get_default_settings()
Get photoswipe default settings.
1 call to photoswipe_get_default_settings()
- photoswipe_init in ./
photoswipe.module - Implements hook_init().
File
- ./
photoswipe.module, line 221 - Photswipe integration with Drupal module.
Code
function photoswipe_get_default_settings() {
return array(
'allowUserZoom' => FALSE,
'autoStartSlideshow' => FALSE,
'allowRotationOnUserZoom' => FALSE,
'backButtonHideEnabled' => TRUE,
'captionAndToolbarAutoHideDelay' => 5000,
'captionAndToolbarFlipPosition' => FALSE,
'captionAndToolbarHide' => FALSE,
'captionAndToolbarOpacity' => 0.8,
'captionAndToolbarShowEmptyCaptions' => TRUE,
'cacheMode' => 'normal',
'doubleTapSpeed' => 300,
'doubleTapZoomLevel' => '2.5',
'enableDrag' => TRUE,
'enableKeyboard' => TRUE,
'enableMouseWheel' => TRUE,
'fadeInSpeed' => 250,
'fadeOutSpeed' => 250,
'imageScaleMethod' => 'fit',
'invertMouseWheel' => FALSE,
'jQueryMobile' => variable_get('photoswipe_jquery_mobile'),
'jQueryMobileDialogHash' => '&ui-state=dialog',
'loop' => TRUE,
'margin' => 20,
'maxUserZoom' => '5.0',
'minUserZoom' => '0.5',
'mouseWheelSpeed' => 500,
'nextPreviousSlideSpeed' => 0,
'preventHide' => FALSE,
'preventSlideshow' => FALSE,
'slideshowDelay' => 3000,
'slideSpeed' => 250,
'swipeThreshold' => 50,
'swipeTimeThreshold' => 250,
'slideTimingFunction' => 'ease-out',
'zIndex' => 1000,
);
}