You are here

function form_type_select_or_other_field_value in Select (or other) 7.2

Same name and namespace in other branches
  1. 7.3 select_or_other.module \form_type_select_or_other_field_value()

Implements form_type_hook_value().

File

./select_or_other.module, line 68
The Select (or other) module.

Code

function form_type_select_or_other_field_value($element, $edit, $form_state) {
  if (func_num_args() == 1) {
    return $element['#default_value'];
  }
  return $edit;
}