public function FlexiformFormEntityBase::configForm in Flexiform 7
Get the Configuration Form.
Overrides FlexiformFormEntityInterface::configForm
3 calls to FlexiformFormEntityBase::configForm()
- FlexiformFormEntityEntityReference::configForm in includes/
form_entity/ entityreference.form_entity.inc - Get the Configuration Form.
- FlexiformFormEntityFieldCollection::configForm in includes/
form_entity/ field_collection.form_entity.inc - Get the Configuration Form.
- FlexiformFormEntityLoad::configForm in includes/
form_entity/ load.form_entity.inc - Get the Configuration Form.
3 methods override FlexiformFormEntityBase::configForm()
- FlexiformFormEntityEntityReference::configForm in includes/
form_entity/ entityreference.form_entity.inc - Get the Configuration Form.
- FlexiformFormEntityFieldCollection::configForm in includes/
form_entity/ field_collection.form_entity.inc - Get the Configuration Form.
- FlexiformFormEntityLoad::configForm in includes/
form_entity/ load.form_entity.inc - Get the Configuration Form.
File
- includes/
form_entity/ base.form_entity.inc, line 123 - Contains class for a basic entity getter.
Class
- FlexiformFormEntityBase
- Default Form Entity Class for Managing a form Entity.
Code
public function configForm($form, &$form_state) {
$form['settings'] = array(
'#type' => 'container',
'#tree' => TRUE,
);
$form['settings']['save_on_submit'] = array(
'#type' => 'checkbox',
'#title' => t('Save Entity on Submit'),
'#description' => t('Should this entity always be saved on submit?'),
'#default_value' => isset($this->settings['save_on_submit']) ? $this->settings['save_on_submit'] : TRUE,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save Settings'),
);
return $form;
}