function template_preprocess_views_view_row_rss in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 6.3 theme/theme.inc \template_preprocess_views_view_row_rss()
- 6.2 theme/theme.inc \template_preprocess_views_view_row_rss()
- 7.3 theme/theme.inc \template_preprocess_views_view_row_rss()
Default theme function for all RSS rows.
File
- theme/
theme.inc, line 933 - Preprocessors and helper functions to make theming easier.
Code
function template_preprocess_views_view_row_rss(&$vars) {
$view =& $vars['view'];
$options =& $vars['options'];
$item =& $vars['row'];
$vars['title'] = check_plain($item->title);
$vars['link'] = check_url($item->link);
$vars['description'] = check_plain($item->description);
$vars['item_elements'] = empty($item->elements) ? '' : format_xml_elements($item->elements);
}