views_slideshow_plugin_style_slideshow.inc in Views Slideshow 6
Same filename and directory in other branches
Contains the list style plugin.
File
views_slideshow_plugin_style_slideshow.incView source
<?php
// views_slideshow_plugin_style_slideshow.inc
/**
* @file
* Contains the list style plugin.
*/
/**
* Style plugin to render each item in a slideshow of an ordered or unordered list.
*
* @ingroup views_style_plugins
*/
class views_slideshow_plugin_style_slideshow extends views_plugin_style_list {
/**
* Set default options
*/
function option_definition() {
module_load_all_includes('views_slideshow.inc');
$options = parent::option_definition();
$options = array_merge($options, module_invoke_all('views_slideshow_option_definition'));
return $options;
}
/**
* Render the given style.
*/
function options_form(&$form, &$form_state) {
module_load_all_includes('views_slideshow.inc');
parent::options_form($form, $form_state);
$form['mode'] = array(
'#type' => 'select',
'#title' => t('Slideshow mode'),
'#options' => module_invoke_all('views_slideshow_modes'),
'#default_value' => $this->options['mode'],
);
foreach (module_implements('views_slideshow_options_form') as $module) {
$function = $module . '_views_slideshow_options_form';
call_user_func_array($function, array(
&$form,
&$form_state,
&$this,
));
}
}
}
Classes
Name | Description |
---|---|
views_slideshow_plugin_style_slideshow | Style plugin to render each item in a slideshow of an ordered or unordered list. |