public function FlexiformDisplayAddPane::configForm in Flexiform 7
Build the config form.
Overrides FlexiformDisplayBase::configForm
File
- includes/
display/ add_pane.display.inc, line 15 - Define Display plugin for the add panels pane.
Class
- FlexiformDisplayAddPane
- Class for add panel panes.
Code
public function configForm($form, &$form_state) {
$form = parent::configForm($form, $form_state);
$form['access'] = array(
'#type' => 'fieldset',
'#title' => t('Access'),
'#tree' => TRUE,
'#description' => t('Advanced Access Settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['access']['bypass'] = array(
'#type' => 'checkbox',
'#title' => t('By-pass Flexiform Access'),
'#description' => t('By-pass Flexiform Access settings. This can be useful if you would prefer to use panels visibility rules to control access to this form.'),
'#default_value' => !empty($this->configuration['access']['bypass']),
);
return $form;
}