diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-18 10:37:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-18 10:37:57 +0000 |
commit | 1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e (patch) | |
tree | ef6695943a618af4053a7cd18e0114e3eb796227 /modules/system/system.module | |
parent | ceb9859d70080b67ab2a46ee93528f0813d734a2 (diff) | |
download | brdo-1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e.tar.gz brdo-1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e.tar.bz2 |
- Patch #3986 by James (and Boris :)):consolidated all feed-related settings in one place.
* adds a "feed settings" section to admin/settings where 2 new settings are introduced:
* number of items per feed
* default length of feed descriptions (title only, teaser, full)
* patches all of core to obey the above - including the new aggregator (out) feeds
* adds support for adding namespaces in _nodeapi('rss item') - which means things like iTunes RSS and yahoo's media rss can be implemented by the appropriate modules (i.e. audio.module)
* includes some additional info in the default node feed - specifically the element (links directly to comments) - and dc:creator - to show node author information.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 1168a1223..56c648273 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -238,6 +238,12 @@ function system_view_general() { $output .= form_group_collapsible(t('Image handling'), '<p>'. $group .'</p>', TRUE); } + // Feed settings + $group = ''; + $group .= form_select(t('Number of items per feed'), 'feed_default_items', variable_get('feed_default_items', 10), drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)), t('The default number of items to include in a feed.')); + $group .= form_select(t('Display of XML feed items'), 'feed_item_length', variable_get('feed_item_length','teaser'), array('title' => t('Titles only'), 'teaser' => t('Titles plus teaser'), 'fulltext' => t('Full text')), t('Global setting for the length of XML feed items that are output by default.')); + $output .= form_group_collapsible(t('RSS feed settings'), $group, TRUE); + // Date settings: $zones = _system_zonelist(); |