From ab21e07bbd3ac303495a9cce99862d84bba0893e Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 14 Nov 2010 21:04:45 +0000 Subject: #878092 follow-up by sun, David_Rothstein: Fixed Regression from D7 alpha: themes are unable to render one group of node links separately from another. --- modules/node/node.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.module b/modules/node/node.module index 337c4098d..025be15d3 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1336,6 +1336,11 @@ function node_build_content($node, $view_mode = 'full', $langcode = NULL) { // Always display a read more link on teasers because we have no way // to know when a teaser view is different than a full view. $links = array(); + $node->content['links'] = array( + '#theme' => 'links__node', + '#pre_render' => array('drupal_pre_render_links'), + '#attributes' => array('class' => array('links', 'inline')), + ); if ($view_mode == 'teaser') { $links['node-readmore'] = array( 'title' => t('Read more'), @@ -1343,8 +1348,8 @@ function node_build_content($node, $view_mode = 'full', $langcode = NULL) { 'attributes' => array('rel' => 'tag', 'title' => strip_tags($node->title)) ); } - $node->content['links'] = array( - '#theme' => 'links__node', + $node->content['links']['node'] = array( + '#theme' => 'links__node__node', '#links' => $links, '#attributes' => array('class' => array('links', 'inline')), ); -- cgit v1.2.3