function field_form_set_state

field_form_set_state($parents, $field_name, $langcode, &$form_state, $field_state)

Stores processing information about a field in $form_state.

Parameters

$parents: The array of #parents where the field lives in the form.

$field_name: The field name.

$langcode: The language in which the field values are entered.

$form_state: The form state.

$field_state: The array of data to store. See field_form_get_state() for the structure and content of the array.

See also

field_form_get_state()

File

modules/field/field.form.inc, line 527
Field forms management.

Code

function field_form_set_state($parents, $field_name, $langcode, &$form_state, $field_state) {
  $form_state_parents = _field_form_state_parents($parents, $field_name, $langcode);
  drupal_array_set_nested_value($form_state, $form_state_parents, $field_state);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.form.inc/function/field_form_set_state/7.x