You are here

function _value_is_file_element_process in Value is 7

Process callback for file input elements.

1 string reference to '_value_is_file_element_process'
value_is_element_info_alter in ./value_is.module
Implements hook_element_info_alter().

File

./value_is.module, line 31
All the element validators for #element_validate.

Code

function _value_is_file_element_process($element, &$form_state, $form) {
  $file = _value_is_get_file($element);
  $error = _value_is_get_file_error($file);
  if (!$error) {
    $element['#value'] = $file;
    form_set_value($element, $file, $form_state);
  }
  return $element;
}