You are here

function system_rss_feeds_settings in Drupal 5

Same name and namespace in other branches
  1. 6 modules/system/system.admin.inc \system_rss_feeds_settings()
  2. 7 modules/system/system.admin.inc \system_rss_feeds_settings()
1 string reference to 'system_rss_feeds_settings'
system_menu in modules/system/system.module
Implementation of hook_menu().

File

modules/system/system.module, line 760
Configuration system that lets administrators modify the workings of the site.

Code

function system_rss_feeds_settings() {
  $form['feed_default_items'] = array(
    '#type' => 'select',
    '#title' => t('Number of items per feed'),
    '#default_value' => variable_get('feed_default_items', 10),
    '#options' => drupal_map_assoc(array(
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      15,
      20,
      25,
      30,
    )),
    '#description' => t('The default number of items to include in a feed.'),
  );
  $form['feed_item_length'] = array(
    '#type' => 'select',
    '#title' => t('Display of XML feed items'),
    '#default_value' => variable_get('feed_item_length', 'teaser'),
    '#options' => array(
      'title' => t('Titles only'),
      'teaser' => t('Titles plus teaser'),
      'fulltext' => t('Full text'),
    ),
    '#description' => t('Global setting for the length of XML feed items that are output by default.'),
  );
  return system_settings_form($form);
}