From 0142292c718eaf31e73c3ee0cd9ef427bc18de16 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 2 Jul 2009 04:27:23 +0000 Subject: #373201 by moshe weitzman, chx, Frando, eaton: Allow renderable array properties to be passed directly to theme functions. --- modules/blog/blog.module | 5 +++-- modules/blog/blog.pages.inc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 121fc25ed..c0ceee50d 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -99,8 +99,9 @@ function blog_node_view($node, $build_mode = 'full') { 'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name))), ); $node->content['links']['blog'] = array( - '#type' => 'node_links', - '#value' => $links, + '#theme' => 'links', + '#links' => $links, + '#attributes' => array('class' => 'links inline'), ); } } diff --git a/modules/blog/blog.pages.inc b/modules/blog/blog.pages.inc index ace4f8ece..c8596fd40 100644 --- a/modules/blog/blog.pages.inc +++ b/modules/blog/blog.pages.inc @@ -25,7 +25,7 @@ function blog_page_user($account) { $build['blog_actions'] = array( '#items' => $items, - '#theme' => 'list', + '#theme' => 'item_list', '#weight' => -1, ); @@ -74,7 +74,7 @@ function blog_page_last() { $items[] = l(t('Create new blog entry.'), "node/add/blog"); $build['blog_actions'] = array( '#items' => $items, - '#theme' => 'list', + '#theme' => 'item_list', '#weight' => -1, ); } -- cgit v1.2.3