function hook_views_slideshow_option_definition in Views Slideshow 8.3
Same name and namespace in other branches
- 6.3 views_slideshow.api.php \hook_views_slideshow_option_definition()
- 7.3 views_slideshow.api.php \hook_views_slideshow_option_definition()
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 - Information about options for all kinds of purposes will be held here. @code 'option_name' => array(
File
- ./
views_slideshow.api.inc, line 132 - 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,
),
//normal
'delay' => array(
'default' => 0,
),
'sync' => array(
'default' => 1,
),
'random' => array(
'default' => 0,
),
),
);
return $options;
}