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/translation/translation.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/translation/translation.module') diff --git a/modules/translation/translation.module b/modules/translation/translation.module index b2e1ed9f3..de2eb4871 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -181,8 +181,9 @@ function translation_node_view($node, $build_mode) { 'attributes' => array('title' => $translations[$langcode]->title, 'class' => 'translation-link') ); $node->content['links']['translation'] = array( - '#type' => 'node_links', - '#value' => $links, + '#theme' => 'links', + '#links' => $links, + '#attributes' => array('class' => 'links inline'), ); } } -- cgit v1.2.3