You are here

function theme_views_view_field in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 theme/theme.inc \theme_views_view_field()
  2. 6.3 theme/theme.inc \theme_views_view_field()
  3. 6.2 theme/theme.inc \theme_views_view_field()

Display a single views field.

Interesting bits of info: $field->field_alias says what the raw value in $row will be. Reach it like this:

 { $row->{$field->field_alias} 

.

File

theme/theme.inc, line 351
Preprocessors and helper functions to make theming easier.

Code

function theme_views_view_field($vars) {
  $view = $vars['view'];
  $field = $vars['field'];
  $row = $vars['row'];
  return $vars['output'];
}