You are here

function template_process_views_view in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 theme/theme.inc \template_process_views_view()

Process function to render certain elements into the view.

File

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

Code

function template_process_views_view(&$vars) {
  if (is_array($vars['rows'])) {
    $vars['rows'] = drupal_render($vars['rows']);
  }

  // Flatten the classes to a string for the template file.
  $vars['classes'] = implode(' ', $vars['classes_array']);
}