- Patch #500038 by Shai, sreynen | webchick: changed default for RSS output from 'teaser only' to 'full node'.

merge-requests/26/head
Dries Buytaert 2009-09-21 07:59:18 +00:00
parent ef33d44f66
commit 1eea0b5496
3 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@ function theme_aggregator_page_rss($feeds, $category = NULL) {
drupal_set_header('Content-Type', 'application/rss+xml; charset=utf-8');
$items = '';
$feed_length = variable_get('feed_item_length', 'teaser');
$feed_length = variable_get('feed_item_length', 'fulltext');
foreach ($feeds as $feed) {
switch ($feed_length) {
case 'teaser':

View File

@ -1823,7 +1823,7 @@ function node_feed($nids = FALSE, $channel = array()) {
->fetchCol();
}
$item_length = variable_get('feed_item_length', 'teaser');
$item_length = variable_get('feed_item_length', 'fulltext');
$namespaces = array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/');
$teaser = ($item_length == 'teaser');

View File

@ -1576,7 +1576,7 @@ function system_rss_feeds_settings() {
$form['feed_item_length'] = array(
'#type' => 'select',
'#title' => t('Feed content'),
'#default_value' => 'teaser',
'#default_value' => '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.')
);