function system_rss_feeds_settings
system_rss_feeds_settings()
Form builder; Configure how the site handles RSS feeds.
See also
Related topics
File
- modules/system/system.admin.inc, line 1891
- Admin page callbacks for the system module.
Code
function system_rss_feeds_settings() { $form['feed_description'] = array( '#type' => 'textarea', '#title' => t('Feed description'), '#default_value' => variable_get('feed_description', ''), '#description' => t('Description of your site, included in each feed.') ); $form['feed_default_items'] = array( '#type' => 'select', '#title' => t('Number of items in each 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('Default number of items to include in each feed.') ); $form['feed_item_length'] = array( '#type' => 'select', '#title' => t('Feed content'), '#default_value' => variable_get('feed_item_length', 'fulltext'), '#options' => array('title' => t('Titles only'), 'teaser' => t('Titles plus teaser'), 'fulltext' => t('Full text')), '#description' => t('Global setting for the default display of content items in each feed.') ); return system_settings_form($form); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_rss_feeds_settings/7.x