diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-14 21:04:45 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-14 21:04:45 +0000 |
commit | ab21e07bbd3ac303495a9cce99862d84bba0893e (patch) | |
tree | 7612531b2af662faeb33e6d46564a543c2cbbd78 /modules/node | |
parent | f65a7fae273eb909cdcb366e0c23c6b4dab7e608 (diff) | |
download | brdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.gz brdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.bz2 |
#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.
Diffstat (limited to 'modules/node')
-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')), ); |