You are here

function views_plugin_row_node_rss::options_form in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/node/views_plugin_row_node_rss.inc \views_plugin_row_node_rss::options_form()
  2. 7.3 modules/node/views_plugin_row_node_rss.inc \views_plugin_row_node_rss::options_form()

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

modules/node/views_plugin_row_node_rss.inc, line 24
Contains the node RSS row style plugin.

Class

views_plugin_row_node_rss
Plugin which performs a node_view on the resulting object and formats it as an RSS item.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['item_length'] = array(
    '#type' => 'select',
    '#title' => t('Display type'),
    '#options' => array(
      'fulltext' => t('Full text'),
      'teaser' => t('Title plus teaser'),
      'title' => t('Title only'),
      'default' => t('Use default RSS settings'),
    ),
    '#default_value' => $this->options['item_length'],
  );
}