public function FlexiformDisplayBase::configForm in Flexiform 7
Build the config form.
Overrides FlexiformDisplayInterface::configForm
3 calls to FlexiformDisplayBase::configForm()
- FlexiformDisplayAddPane::configForm in includes/
display/ add_pane.display.inc - Build the config form.
- FlexiformDisplayPageBase::configForm in includes/
display/ page.display.inc - Get the configuration form.
- FlexiformDisplayUserCategory::configForm in includes/
display/ user_category.display.inc - Get the configuration form.
3 methods override FlexiformDisplayBase::configForm()
- FlexiformDisplayAddPane::configForm in includes/
display/ add_pane.display.inc - Build the config form.
- FlexiformDisplayPageBase::configForm in includes/
display/ page.display.inc - Get the configuration form.
- FlexiformDisplayUserCategory::configForm in includes/
display/ user_category.display.inc - Get the configuration form.
File
- includes/
flexiform.display.inc, line 166 - Specify base display classes for flexiforms.
Class
- FlexiformDisplayBase
- Base class for all flexiform displays.
Code
public function configForm($form, &$form_state) {
$form['enabled'] = array(
'#type' => 'checkbox',
'#title' => 'Enabled',
'#default_value' => !empty($this->configuration['enabled']),
);
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#default_value' => !empty($this->configuration['title']) ? $this->configuration['title'] : '',
);
return $form;
}