Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
37
modules/views/plugins/views_plugin_style_list.inc
Normal file
37
modules/views/plugins/views_plugin_style_list.inc
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Contains the list style plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Style plugin to render each item in an ordered or unordered list.
|
||||
*
|
||||
* @ingroup views_style_plugins
|
||||
*/
|
||||
class views_plugin_style_list extends views_plugin_style {
|
||||
/**
|
||||
* Set default options
|
||||
*/
|
||||
function option_definition() {
|
||||
$options = parent::option_definition();
|
||||
|
||||
$options['type'] = array('default' => 'ul');
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the given style.
|
||||
*/
|
||||
function options_form(&$form, &$form_state) {
|
||||
parent::options_form($form, $form_state);
|
||||
$form['type'] = array(
|
||||
'#type' => 'radios',
|
||||
'#title' => t('List type'),
|
||||
'#options' => array('ul' => t('Unordered list'), 'ol' => t('Ordered list')),
|
||||
'#default_value' => $this->options['type'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in a new issue