2 // $Id: views_plugin_style_list.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $
5 * Contains the list style plugin.
9 * Style plugin to render each item in an ordered or unordered list.
11 * @ingroup views_style_plugins
13 class views_plugin_style_list extends views_plugin_style {
17 function option_definition() {
18 $options = parent::option_definition();
20 $options['type'] = array('default' => 'ul');
26 * Render the given style.
28 function options_form(&$form, &$form_state) {
29 parent::options_form($form, $form_state);
30 $form['type'] = array(
32 '#title' => t('List type'),
33 '#options' => array('ul' => t('Unordered list'), 'ol' => t('Ordered list')),
34 '#default_value' => $this->options['type'],