- Patch #1174602 by jn2: Node_block_view() should use render arrays.

merge-requests/26/head
Dries Buytaert 2011-08-08 14:55:19 -04:00
parent 5869d68927
commit d08378534d
1 changed files with 9 additions and 4 deletions

View File

@ -2115,16 +2115,21 @@ function node_block_view($delta = '') {
switch ($delta) {
case 'syndicate':
$block['subject'] = t('Syndicate');
$block['content'] = theme('feed_icon', array('url' => 'rss.xml', 'title' => t('Syndicate')));
$block['content'] = array(
'#theme' => 'feed_icon',
'#url' => 'rss.xml',
'#title' => t('Syndicate'),
);
break;
case 'recent':
if (user_access('access content')) {
$block['subject'] = t('Recent content');
if ($nodes = node_get_recent(variable_get('node_recent_block_count', 10))) {
$block['content'] = theme('node_recent_block', array(
'nodes' => $nodes,
));
$block['content'] = array(
'#theme' => 'node_recent_block',
'#nodes' => $nodes,
);
} else {
$block['content'] = t('No content available.');
}