public function FlexiformElementEntityProperty::configureFormSubmit in Flexiform 7
Submit the configure form for the element.
Overrides FlexiformElement::configureFormSubmit
File
- includes/
element/ property.element.inc, line 225 - Contains class for the entity property elements.
Class
- FlexiformElementEntityProperty
- Class to add an element for entity properties.
Code
public function configureFormSubmit($form, &$form_state, $flexiform) {
$this->settings['required'] = !empty($form_state['values']['required']);
$this->settings['default_value']['default_value'] = $form_state['values']['default_value']['default_value'];
$this->settings['default_value']['use_tokens'] = $form_state['values']['default_value']['use_tokens'];
if (!empty($form_state['values']['options'])) {
$this->settings['options']['widget'] = $form_state['values']['options']['widget'];
}
parent::configureFormSubmit($form, $form_state, $flexiform);
}