You are here

function userreference_select_validate in Content Construction Kit (CCK) 6

Afterbuild adjustment of the element.

Remove the wrapper layer and set the right element's value.

1 string reference to 'userreference_select_validate'
userreference_select_process in modules/userreference/userreference.module
Process an individual element.

File

modules/userreference/userreference.module, line 400
Defines a field type for referencing a user from a node.

Code

function userreference_select_validate($element, &$form_state) {
  $field_key = $element['#columns'][0];
  array_pop($element['#parents']);
  form_set_value($element, $form_state['values'][$element['#field_name']][$field_key], $form_state);
}