Same name in other branches
- 8.x-1.x src/Plugin/QuickContent/QuickBlockContent.php \Drupal\quicktabs\Plugin\QuickContent\QuickBlockContent::optionsForm()
Overrides QuickContent::optionsForm
Fichier
-
plugins/
QuickBlockContent.inc, line 13
Classe
- 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;
}