You are here

function quicktabs_style_plugin::options_form in Quick Tabs 6.3

Same name and namespace in other branches
  1. 6.2 includes/quicktabs_style_plugin.inc \quicktabs_style_plugin::options_form()
  2. 7.3 includes/quicktabs_style_plugin.inc \quicktabs_style_plugin::options_form()

File

includes/quicktabs_style_plugin.inc, line 23
Add Quicktabs style plugins to Views.

Class

quicktabs_style_plugin
Style plugin to display Quicktabs.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['tab_style'] = array(
    '#type' => 'select',
    '#title' => t('Tab style'),
    '#options' => quicktabs_style_options(),
    '#default_value' => $this->options['tab_style'],
    '#description' => t('The tab style that will be applied to this set of tabs. Note that this style may not show in the live preview.'),
    '#weight' => -5,
  );
  if (isset($form['grouping'])) {
    $options = $form['grouping']['#options'];
    unset($options['']);
    $form['tab_title_field'] = array(
      '#type' => 'select',
      '#title' => t('Title field'),
      '#options' => $options,
      '#required' => TRUE,
      '#default_value' => $this->options['tab_title_field'],
      '#description' => t('Select the field that will be used as the tab title.'),
      '#weight' => -3,
    );
  }
}