function form_type_select_or_other_field_value in Select (or other) 7.3
Same name and namespace in other branches
- 7.2 select_or_other.module \form_type_select_or_other_field_value()
Implements form_type_hook_value().
File
- ./
select_or_other.module, line 58 - 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;
}