You are here

function hook_views_slideshow_option_definition in Views Slideshow 7.3

Same name and namespace in other branches
  1. 8.3 views_slideshow.api.inc \hook_views_slideshow_option_definition()
  2. 6.3 views_slideshow.api.php \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.

Related topics

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 contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc
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()
views_slideshow_plugin_style_slideshow::option_definition in ./views_slideshow_plugin_style_slideshow.inc
Set default options.

File

./views_slideshow.api.php, line 72
Hooks provided by Views Slideshow.

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;
}