diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 9 |
1 files changed, 7 insertions, 2 deletions
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')), ); |