You are here

function _field_validation_get_field_column_value in Field Validation 7

helper function to get field value

1 call to _field_validation_get_field_column_value()
field_validation_field_validation_validate in ./field_validation.validators.inc
Implements hook_field_validation_validate().

File

./field_validation.validators.inc, line 768
Provides validation functionality and hooks

Code

function _field_validation_get_field_column_value($items, $column = 'value') {
  $field_values = array();
  foreach ($items as $delta => $item) {
    if (isset($item[$column]) && $item[$column] != '') {
      $field_values[] = $item[$column];
    }
  }
  return $field_values;
}