You are here

function views_plugin_style_sgrid::options_form in Sortable Grid Views Plugin 7

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

Render the given style.

Overrides views_plugin_style_list::options_form

File

./views_plugin_style_sgrid.inc, line 22
Views style plugin for Sortable grid module

Class

views_plugin_style_sgrid
@file Views style plugin for Sortable grid module

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'],
  );
}