- Patch #500038 by Shai, sreynen | webchick: changed default for RSS output from 'teaser only' to 'full node'.
parent
ef33d44f66
commit
1eea0b5496
|
@ -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':
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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.')
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue