Same name in other branches
- 8.x-1.x src/Plugin/QuickContent/QuickCallbackContent.php \Drupal\quicktabs\Plugin\QuickContent\QuickCallbackContent::optionsForm()
Overrides QuickContent::optionsForm
File
-
plugins/
QuickCallbackContent.inc, line 34
Class
- QuickCallbackContent
- Class for tab content of type "callback" - this is for rendering the contents of some menu callback function as tab content.
Code
public function optionsForm($delta, $qt) {
$tab = $this->settings;
$form = array();
$form['callback']['path'] = array(
'#type' => 'textfield',
'#default_value' => isset($tab['path']) ? $tab['path'] : '',
'#title' => t('Path'),
'#element_validate' => array(
'quicktabs_callback_element_validate',
),
);
$form['callback']['use_title'] = array(
'#type' => 'checkbox',
'#return_value' => TRUE,
'#title' => 'Use callback title',
'#default_value' => isset($tab['use_title']) ? $tab['use_title'] : FALSE,
'#description' => t('Should quicktabs use the rendered title of the callback?'),
);
return $form;
}