public function QuickCallbackContent::optionsForm in Quick Tabs 7.3
Method for returning the form elements to display for this tab type on the admin form.
Parameters
$delta Integer representing this tab's position in the tabs array.:
$qt An object representing the Quicktabs instance that the tabs are: being built for.
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;
}