summaryrefslogtreecommitdiff
path: root/modules/translation/translation.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-02 04:27:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-07-02 04:27:23 +0000
commit0142292c718eaf31e73c3ee0cd9ef427bc18de16 (patch)
tree69e3a1784a48af68ec65537d375058bb2cb61daa /modules/translation/translation.module
parente9ca98b69d45b935fe4963a345cba92a87164ddb (diff)
downloadbrdo-0142292c718eaf31e73c3ee0cd9ef427bc18de16.tar.gz
brdo-0142292c718eaf31e73c3ee0cd9ef427bc18de16.tar.bz2
#373201 by moshe weitzman, chx, Frando, eaton: Allow renderable array properties to be passed directly to theme functions.
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r--modules/translation/translation.module5
1 files changed, 3 insertions, 2 deletions
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'),
);
}
}