Same name in other branches
- 7.x-3.x plugins/QuickAccordion.inc \QuickAccordion::optionsForm()
Return value
array
Overrides QuickRenderer::optionsForm
Fichier
-
src/
Plugin/ QuickRender/ QuickAccordion.php, line 20
Classe
- QuickAccordion
- Renders the content using the jQuery UI Accordion widget.
Namespace
Drupal\quicktabs\Plugin\QuickRenderCode
public static function optionsForm($qt) {
$form = array();
$form['history'] = array(
'#type' => 'checkbox',
'#title' => 'History',
'#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'),
'#default_value' => isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['history']) && $qt->options['history'],
);
$form['jquery_ui'] = array(
'#type' => 'fieldset',
'#title' => t('JQuery UI options'),
);
$form['jquery_ui']['autoHeight'] = array(
'#type' => 'checkbox',
'#title' => 'Autoheight',
'#default_value' => isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['autoHeight']) && $qt->options['jquery_ui']['autoHeight'],
);
$form['jquery_ui']['collapsible'] = array(
'#type' => 'checkbox',
'#title' => t('Collapsible'),
'#default_value' => isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['collapsible']) && $qt->options['jquery_ui']['collapsible'],
);
return $form;
}