My user on my site wanted to get rid of the link "user's blog". I was searching but couldn't find anything.

Until I found this post:

http://drupal.org/node/182056.

This is the code you need in your template.php:

<?php
function phptemplate_links($links, $attributes = array()) {
	unset($links['blog_usernames_blog']);
    return theme_links($links, $attributes);
}
?>

Started with this code I got to know what the links were:

<?php
function phptemplate_links($links, $attributes = array()) {
    print_r($links);
    return "Hello World";
}
?>

So i could figure out what the link was on the blog teaser.
Hopefully this can help somebody.

Eddy

Comments

jmalm’s picture

Great. Thanks. Don't forget to clear cache, if necessary: http://drupal.org/node/337176

emcniece’s picture

Works in D6. Thank you!

VividPencil’s picture

With this tip you saved lots of time.

drtduarte’s picture

I added the code:

<?php
function phptemplate_links($links, $attributes = array()) {
    unset($links['blog_usernames_blog']);
    return theme_links($links, $attributes);
}
?>

to the template.php file, but I still got the link...

using Drupal 6

knalstaaf’s picture

Hlungwaneak’s picture

Another way would be to use css

li.blog_usernames_blog.last
{
display:none;
}