You are here

function template_preprocess_views_view_field in Views (for Drupal 7) 7.3

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

Process a single field within a view.

This preprocess function isn't normally run, as a function is used by default, for performance. However, by creating a template, this preprocess should get picked up.

File

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

Code

function template_preprocess_views_view_field(&$vars) {
  $vars['output'] = $vars['field']
    ->advanced_render($vars['row']);
}