By new_B on
Hi,
Does anybody know of a way to remove the "[user]'s blog" link from the $links variable (which also contains links like "Read more", "Add a comment", etc.?)
I know that I can just remove the blog_link(...) hook from blog.module but from what I've learned so far, it's not a good idea to hack core. Is there a better method (e.g. to somehow override the implemented hook)?
Thanks.
Comments
In case anybody has the same
In case anybody has the same issue, see http://drupal.org/node/324796 .
code from 324796 is not
code from 324796 is not correct, because it removes in
ul.links li - links result is ul li
you need to add this code to template.php of your theme
/*
* remove "user's blog"
*/
function your_theme_links($links, $attributes = array('class' => 'links')) {
unset($links['blog_usernames_blog']);
return theme_links($links, $attributes = array('class' => 'links'));
}