You are here

function theme_views_rss_fields_item in Views RSS 7

Element template

1 theme call to theme_views_rss_fields_item()
template_preprocess_views_view_views_rss_fields in views/views_rss_views_fields.theme.inc
Template preprocessor for views-view-views-rss-fields.tpl.php.

File

views/views_rss_views_fields.theme.inc, line 72

Code

function theme_views_rss_fields_item($variables) {
  $item = $variables['item'];

  // Loop through key=>value pairs
  $row = '';
  foreach ($item as $key => $value) {
    if ($value) {
      $row .= theme('views_rss_fields_element', array(
        'key' => $key,
        'element' => $value,
      ));
    }
  }
  return '<item>' . $row . '</item>';
}