'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; } public function render() { $quickset = $this->quickset; $qsid = 'quickset-' . $quickset->getName(); // Build our render array... $render_array = array(); $render_array['#attached'] = $this->add_attached(); $render_array['content'] = array( '#theme' => 'qt_accordion', '#options' => array('attributes' => array( 'id' => $qsid, 'class' => array('quick-accordion'), )), 'divs' => array(), ); // Render all tab content. foreach ($quickset->getContents() as $key => $item) { if (!empty($item)) { $render_array['content']['divs'][] = array( '#prefix' => '