Same name and namespace in other branches
  1. 8.x-3.x views_slideshow.api.inc \hook_views_slideshow_option_definition()

Set default values for options specified in hook_views_slideshow_type_form.

Return value

array Associative array of slideshow type name and options.

Sujets associés

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 dans contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc
Implements hook_views_slideshow_option_definition().
views_slideshow_views_slideshow_option_definition dans ./views_slideshow.module
Implements hook_views_slideshow_option_definition().
1 invocation of hook_views_slideshow_option_definition()
views_slideshow_plugin_style_slideshow::option_definition dans ./views_slideshow_plugin_style_slideshow.inc
Set default options.

Fichier

./views_slideshow.api.php, line 72

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,
            ),
            'delay' => array(
                'default' => 0,
            ),
            'sync' => array(
                'default' => 1,
            ),
            'random' => array(
                'default' => 0,
            ),
        ),
    );
    return $options;
}