Index: modules/blog/blog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blog/blog.module,v retrieving revision 1.359 diff -u -p -r1.359 blog.module --- modules/blog/blog.module 17 Aug 2010 16:20:07 -0000 1.359 +++ modules/blog/blog.module 26 Aug 2010 09:31:49 -0000 @@ -80,16 +80,11 @@ function blog_view($node, $view_mode) { function blog_node_view($node, $view_mode) { if ($view_mode != 'rss') { if ($node->type == 'blog' && (arg(0) != 'blog' || arg(1) != $node->uid)) { - $links['blog_usernames_blog'] = array( + $node->content['links']['#links']['blog_usernames_blog'] = array( 'title' => t("!username's blog", array('!username' => format_username($node))), 'href' => "blog/$node->uid", 'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => format_username($node)))), ); - $node->content['links']['blog'] = array( - '#theme' => 'links__blog_node', - '#links' => $links, - '#attributes' => array('class' => array('links', 'inline')), - ); } } } Index: modules/book/book.module =================================================================== RCS file: /cvs/drupal/drupal/modules/book/book.module,v retrieving revision 1.549 diff -u -p -r1.549 book.module --- modules/book/book.module 17 Aug 2010 16:20:07 -0000 1.549 +++ modules/book/book.module 26 Aug 2010 09:31:49 -0000 @@ -112,11 +112,7 @@ function book_node_view_link($node, $vie } if (!empty($links)) { - $node->content['links']['book'] = array( - '#theme' => 'links__book_node', - '#links' => $links, - '#attributes' => array('class' => array('links', 'inline')), - ); + $node->content['links']['#links'] = array_merge($node->content['links']['#links'], $links); } } Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.892 diff -u -p -r1.892 comment.module --- modules/comment/comment.module 23 Aug 2010 14:53:50 -0000 1.892 +++ modules/comment/comment.module 26 Aug 2010 09:31:49 -0000 @@ -688,11 +688,7 @@ function comment_node_view($node, $view_ $links['comment_forbidden']['html'] = TRUE; } - $node->content['links']['comment'] = array( - '#theme' => 'links__comment_node', - '#links' => $links, - '#attributes' => array('class' => array('links', 'inline')), - ); + $node->content['links']['#links'] = array_merge($node->content['links']['#links'], $links); // Only append comments when we are building a node on its own node detail // page. We compare $node and $page_node to ensure that comments are not Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.1293 diff -u -p -r1.1293 node.module --- modules/node/node.module 23 Aug 2010 22:15:34 -0000 1.1293 +++ modules/node/node.module 26 Aug 2010 09:31:49 -0000 @@ -1286,7 +1286,7 @@ function node_build_content($node, $view 'attributes' => array('rel' => 'tag', 'title' => strip_tags($node->title)) ); } - $node->content['links']['node'] = array( + $node->content['links'] = array( '#theme' => 'links__node', '#links' => $links, '#attributes' => array('class' => array('links', 'inline')), Index: modules/statistics/statistics.module =================================================================== RCS file: /cvs/drupal/drupal/modules/statistics/statistics.module,v retrieving revision 1.337 diff -u -p -r1.337 statistics.module --- modules/statistics/statistics.module 10 Jul 2010 01:44:28 -0000 1.337 +++ modules/statistics/statistics.module 26 Aug 2010 09:31:49 -0000 @@ -114,19 +114,12 @@ function statistics_permission() { */ function statistics_node_view($node, $view_mode) { if ($view_mode != 'rss') { - $links = array(); if (user_access('view post access counter')) { $statistics = statistics_get($node->nid); if ($statistics) { - $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + $node->content['links']['#links']['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); } } - - $node->content['links']['statistics'] = array( - '#theme' => 'links__statistics_node', - '#links' => $links, - '#attributes' => array('class' => array('links', 'inline')), - ); } } Index: modules/translation/translation.module =================================================================== RCS file: /cvs/drupal/drupal/modules/translation/translation.module,v retrieving revision 1.82 diff -u -p -r1.82 translation.module --- modules/translation/translation.module 5 Aug 2010 08:08:43 -0000 1.82 +++ modules/translation/translation.module 26 Aug 2010 09:31:49 -0000 @@ -188,11 +188,7 @@ function translation_node_view($node, $v $links = $links->links; // Do not show link to the same node. unset($links[$node->language]); - $node->content['links']['translation'] = array( - '#theme' => 'links__translation_node', - '#links' => $links, - '#attributes' => array('class' => array('links', 'inline')), - ); + $node->content['links']['#links'] = array_merge($node->content['links']['#links'], $links); } } }