You are here

function _datex_set_fs in Datex 7.3

Set date value into form state.

2 calls to _datex_set_fs()
_datex_date_popup_field_element_validate_callback in datex_popup/datex_popup.module
Form element validation callback for date popup form element.
_datex_select_date_field_element_validate_callback in ./datex_date.inc
To convert the day back to Gregorian.

File

./datex_date.inc, line 139
Provides support for date module.

Code

function _datex_set_fs(&$element, &$fs, $value, $extra_parent = NULL, $is_input = TRUE) {
  $key = $is_input ? 'input' : 'values';
  if (!isset($fs[$key])) {
    return;
  }
  $parents = $element['#parents'];
  if ($extra_parent) {
    $parents[] = $extra_parent;
  }
  drupal_array_set_nested_value($fs[$key], $parents, $value);
}