You are here

function views_plugin_style_sgrid::options_form in Sortable Grid Views Plugin 6

Same name and namespace in other branches
  1. 7 views_plugin_style_sgrid.inc \views_plugin_style_sgrid::options_form()

Render the given style.

File

./views_plugin_style_sgrid.inc, line 28

Class

views_plugin_style_sgrid

Code

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'],
  );
  $form['row_length'] = array(
    '#title' => t('Row length'),
    '#description' => t('How many items should be displayed before a line break ?'),
    '#type' => 'textfield',
    '#size' => '2',
    '#default_value' => $this->options['row_length'],
  );
}