Same name and namespace in other branches
  1. 7.x-3.x views_slideshow.api.php \hook_views_slideshow_option_definition() 1 comment

Set default values for your form fields specified in hook_views_slideshow_type_form

Return value

Associative array of slideshow type name and options.

2 functions implement hook_views_slideshow_option_definition()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

views_slideshow_cycle_views_slideshow_option_definition in modules/views_slideshow_cycle/views_slideshow_cycle.module
Implements hook_views_slideshow_option_definition().
views_slideshow_views_slideshow_option_definition in ./views_slideshow.module
Implements hook_views_slideshow_option_definition().
1 invocation of hook_views_slideshow_option_definition()
Slideshow::defineOptions in src/Plugin/views/style/Slideshow.php

File

./views_slideshow.api.inc, line 132

Code

function hook_views_slideshow_option_definition() {
    $options['views_slideshow_cycle'] = array(
        'contains' => array(
            // Transition
'effect' => array(
                'default' => 'fade',
            ),
            'transition_advanced' => array(
                'default' => 0,
            ),
            'timeout' => array(
                'default' => 5000,
            ),
            'speed' => array(
                'default' => 700,
            ),
            
            //normal
'delay' => array(
                'default' => 0,
            ),
            'sync' => array(
                'default' => 1,
            ),
            'random' => array(
                'default' => 0,
            ),
        ),
    );
    return $options;
}