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/blog | |
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/blog')
-rw-r--r-- | modules/blog/blog.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index d99d6860e..38a6e3655 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -80,11 +80,16 @@ 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)) { - $node->content['links']['#links']['blog_usernames_blog'] = array( + $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__node__blog', + '#links' => $links, + '#attributes' => array('class' => array('links', 'inline')), + ); } } } |