You are here

function template_preprocess_views_view_row_fia in Facebook Instant Articles 7

Same name and namespace in other branches
  1. 7.2 modules/fb_instant_articles_views/theme/fb_instant_articles_views.theme.inc \template_preprocess_views_view_row_fia()

Templete preprocessor for FBIA views row theme hook.

File

modules/fb_instant_articles_views/theme/fb_instant_articles_views.theme.inc, line 28
Facebook Instant Articles theme hooks.

Code

function template_preprocess_views_view_row_fia(&$vars) {
  $view =& $vars['view'];
  $options =& $vars['options'];
  $item =& $vars['row'];
  $vars['title'] = check_plain($item->title);
  $vars['link'] = check_url($item->link);
  $vars['content'] = $item->content;
  $vars['item_elements'] = empty($item->elements) ? '' : format_xml_elements($item->elements);
}