You are here

function views_plugin_style_rss_fields::xml_fields in Views RSS 7

Same name and namespace in other branches
  1. 6 views/views_plugin_style_rss_fields.inc \views_plugin_style_rss_fields::xml_fields()

An array of available XML fields to map to.

2 calls to views_plugin_style_rss_fields::xml_fields()
views_plugin_style_rss_fields::options_form in views/views_plugin_style_rss_fields.inc
Provide a form for setting options.
views_plugin_style_rss_fields::option_definition in views/views_plugin_style_rss_fields.inc
Information about options for all kinds of purposes will be held here.

File

views/views_plugin_style_rss_fields.inc, line 208

Class

views_plugin_style_rss_fields
Extend the view_plugin_style class to provide an RSS view style.

Code

function xml_fields() {
  return array(
    'title' => array(
      'title' => t('Title'),
      'description' => t('RSS 2.0 title element'),
    ),
    'description' => array(
      'title' => t('Description'),
      'description' => t('RSS 2.0 description element'),
    ),
    'link' => array(
      'title' => t('Link'),
      'description' => t('RSS 2.0 link element'),
    ),
    'author' => array(
      'title' => t('Author e-mail'),
      'description' => t('RSS 2.0 author element'),
    ),
    'dc:creator' => array(
      'title' => t('Author name'),
      'description' => t('Dublin core creator element'),
    ),
    'category' => array(
      'title' => t('category'),
      'description' => t('RSS 2.0 category element'),
    ),
    'guid' => array(
      'title' => t('guid'),
      'description' => t('RSS 2.0 guid element'),
    ),
    'pubDate' => array(
      'title' => t('pubDate'),
      'description' => t('RSS 2.0 pubDate element'),
    ),
    'enclosure' => array(
      'title' => t('enclosure'),
      'description' => t('RSS 2.0 enclosure element'),
    ),
  );
}