public function FlexiformDisplayCreateModal::configForm in Flexiform 7
Get config form.
Overrides FlexiformDisplayPageBase::configForm
File
- includes/
display/ add_modal.display.inc, line 53 - Define Display plugin for the add page.
Class
- FlexiformDisplayCreateModal
- Class for add page displays.
Code
public function configForm($form, &$form_state) {
$form = parent::configForm($form, $form_state);
unset($form['path']);
unset($form['type']);
unset($form['menu_name']);
unset($form['weight']);
$form['ajax_behavior'] = array(
'#title' => t('Submit Behavior'),
'#description' => t('Default behavior when the form is submitted. Note that if a destination or redirect is set by the form code then this will take precedant.'),
'#type' => 'select',
'#default_value' => !empty($this->configuration['ajax_behavior']) ? $this->configuration['ajax_behavior'] : 'reload',
'#options' => array(
'modal_dismiss' => t('Close Modal'),
'reload' => t('Reload'),
),
);
return $form;
}