function template_preprocess_views_bootstrap_thumbnail_plugin_rows in Views Bootstrap 7.2
Same name and namespace in other branches
- 7.3 templates/thumbnail/theme.inc \template_preprocess_views_bootstrap_thumbnail_plugin_rows()
Implementation of template preprocess for the view fields.
File
- templates/thumbnail/ theme.inc, line 21 
Code
function template_preprocess_views_bootstrap_thumbnail_plugin_rows(&$vars) {
  $view =& $vars['view'];
  foreach ($vars['options'] as $id => $field) {
    switch ($id) {
      case 'image':
      case 'title':
        if (isset($view->field[$field])) {
          $vars[$id] = $view->style_plugin
            ->get_field($view->row_index, $field);
        }
        break;
      case 'content':
        $vars[$id] = array();
        foreach (array_filter($field) as $content_field) {
          if (isset($view->field[$content_field])) {
            $vars[$id][$content_field] = $view->style_plugin
              ->get_field($view->row_index, $content_field);
          }
        }
        break;
    }
  }
}