- Patch #1174602 by jn2: Node_block_view() should use render arrays.
parent
5869d68927
commit
d08378534d
|
@ -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.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue