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

Great. Thanks. Don't forget

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

Works in D6. Thank you!

Works in D6. Thank you!

Thanks Eddy147!

With this tip you saved lots of time.

Can't get this working

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

nobody click here