public function FlexiformElement::configureFormSubmit in Flexiform 7
Submit the configure form for the element.
10 calls to FlexiformElement::configureFormSubmit()
- FlexiformElementCtoolsContent::configureFormSubmit in includes/
element/ ctools_content.element.inc - Submit the form element.
- FlexiformElementCustomHtml::configureFormSubmit in includes/
element/ custom_html.element.inc - Submit the form element.
- FlexiformElementEntityProperty::configureFormSubmit in includes/
element/ property.element.inc - Submit the configure form for the element.
- FlexiformElementField::configureFormSubmit in includes/
element/ field.element.inc - Overrides FlexiformElement::configureFormSubmit().
- FlexiformElementNodeAuthor::configureFormSubmit in includes/
element/ node_author.element.inc - Submit the configure form for the element.
10 methods override FlexiformElement::configureFormSubmit()
- FlexiformElementCtoolsContent::configureFormSubmit in includes/
element/ ctools_content.element.inc - Submit the form element.
- FlexiformElementCustomHtml::configureFormSubmit in includes/
element/ custom_html.element.inc - Submit the form element.
- FlexiformElementEntityProperty::configureFormSubmit in includes/
element/ property.element.inc - Submit the configure form for the element.
- FlexiformElementField::configureFormSubmit in includes/
element/ field.element.inc - Overrides FlexiformElement::configureFormSubmit().
- FlexiformElementNodeAuthor::configureFormSubmit in includes/
element/ node_author.element.inc - Submit the configure form for the element.
File
- includes/
flexiform.element.inc, line 226 - Controller class for flexiform elements.
Class
- FlexiformElement
- Base class for all FlexiformElements
Code
public function configureFormSubmit($form, &$form_state, $flexiform) {
if (isset($form_state['values']['label'])) {
$this->settings['label'] = $form_state['values']['label'];
}
else {
$this->settings['label'] = $form_state['values']['instance']['label'];
}
$this->settings['display_options']['css'] = $form_state['values']['display_options']['css_classes'];
$this->settings['display_options']['hide_label'] = $form_state['values']['display_options']['hide_label'];
$this->settings['display_options']['hide_element'] = $form_state['values']['display_options']['hide_element'];
$flexiform
->updateElement($this);
$flexiform
->save();
$form_state['redirect'] = 'admin/structure/flexiforms/manage/' . $flexiform->form . '/form-fields';
}