public function QuickBlockContent::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/
QuickBlockContent.inc, line 13
Class
- QuickBlockContent
- Class for tab content of type "block" - this is for rendering a block as tab content.
Code
public function optionsForm($delta, $qt) {
$tab = $this->settings;
$form = array();
$form['block']['bid'] = array(
'#type' => 'select',
'#options' => quicktabs_get_blocks(),
'#default_value' => isset($tab['bid']) ? $tab['bid'] : '',
'#title' => t('Select a block'),
);
$form['block']['hide_title'] = array(
'#type' => 'checkbox',
'#title' => t('Hide the title of this block'),
'#default_value' => isset($tab['hide_title']) ? $tab['hide_title'] : 1,
);
return $form;
}