You are here

function nodereference_select_validate in Content Construction Kit (CCK) 6

Validate an select element.

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

1 string reference to 'nodereference_select_validate'
nodereference_select_process in modules/nodereference/nodereference.module
Process an individual element.

File

modules/nodereference/nodereference.module, line 476
Defines a field type for referencing one node from another.

Code

function nodereference_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);
}