summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-08-16 02:22:52 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2011-08-16 02:22:52 -0500
commitd70898fc966027036b50e9e7074f9b81cee4c30b (patch)
tree65c981a1e70348944d7a06827b19743e36cb7073 /modules
parent39f4393f205d9172b2124d3e1b0bae911c278d20 (diff)
downloadbrdo-d70898fc966027036b50e9e7074f9b81cee4c30b.tar.gz
brdo-d70898fc966027036b50e9e7074f9b81cee4c30b.tar.bz2
Rollback of #1174602. This is a clean-up patch rather than a bug fix, and could have implications in contrib.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module13
1 files changed, 4 insertions, 9 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 6f750b4d2..6abfcb22e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2124,21 +2124,16 @@ function node_block_view($delta = '') {
switch ($delta) {
case 'syndicate':
$block['subject'] = t('Syndicate');
- $block['content'] = array(
- '#theme' => 'feed_icon',
- '#url' => 'rss.xml',
- '#title' => t('Syndicate'),
- );
+ $block['content'] = theme('feed_icon', array('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'] = array(
- '#theme' => 'node_recent_block',
- '#nodes' => $nodes,
- );
+ $block['content'] = theme('node_recent_block', array(
+ 'nodes' => $nodes,
+ ));
} else {
$block['content'] = t('No content available.');
}