You are here

public function UCXF_Field::edit_form_submit in Extra Fields Checkout Pane 6.2

Same name and namespace in other branches
  1. 7 class/UCXF_Field.class.php \UCXF_Field::edit_form_submit()

Submit the edit form for the item.

_state @access public

Parameters

array $form:

Return value

void

1 call to UCXF_Field::edit_form_submit()
UCXF_AddressField::edit_form_submit in class/UCXF_AddressField.class.php
Override of UCXF_Field::edit_form_submit().
1 method overrides UCXF_Field::edit_form_submit()
UCXF_AddressField::edit_form_submit in class/UCXF_AddressField.class.php
Override of UCXF_Field::edit_form_submit().

File

class/UCXF_Field.class.php, line 596
Contains the UCXF_Field class.

Class

UCXF_Field
Base class for a Extra Fields Pane field

Code

public function edit_form_submit($form, &$form_state) {
  $this
    ->from_array($form_state['values']['ucxf']);
  $this->display_settings = $form_state['values']['ucxf']['display_settings'];
  $this
    ->save();
  drupal_set_message(t('Field saved'));
  if ($this->returnpath) {
    $form_state['redirect'] = $this->returnpath;
  }
}