You are here

public function views_plugin_style_list::options_form in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_style_list.inc \views_plugin_style_list::options_form()
  2. 6.2 plugins/views_plugin_style_list.inc \views_plugin_style_list::options_form()

Render the given style.

Overrides views_plugin_style::options_form

File

plugins/views_plugin_style_list.inc, line 31
Definition of views_plugin_style_list.

Class

views_plugin_style_list
Style plugin to render each item in an ordered or unordered list.

Code

public 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'],
  );
  $form['wrapper_class'] = array(
    '#title' => t('Wrapper class'),
    '#description' => t('The class to provide on the wrapper, outside the list.'),
    '#type' => 'textfield',
    '#size' => '30',
    '#default_value' => $this->options['wrapper_class'],
  );
  $form['class'] = array(
    '#title' => t('List class'),
    '#description' => t('The class to provide on the list element itself.'),
    '#type' => 'textfield',
    '#size' => '30',
    '#default_value' => $this->options['class'],
  );
}