You are here

function theme_views_handle_field in Views (for Drupal 7) 5

Themeable function to handle displaying a specific field.

File

./views.module, line 1258

Code

function theme_views_handle_field($fields, $field, $data) {
  $info = $fields[$field['fullname']];
  if ($field['handler'] && function_exists($field['handler'])) {
    return $field['handler']($info, $field, $data->{$field}['queryname'], $data);
  }
  if ($info['handler'] && is_string($info['handler']) && function_exists($info['handler'])) {
    return $info['handler']($info, $field, $data->{$field}['queryname'], $data);
  }
  return check_plain($data->{$field}['queryname']);
}