Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By eddy147 on
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:
to the template.php file, but I still got the link...
using Drupal 6
D7
Solution for Drupal 7: https://drupal.org/comment/5813290#comment-5813290
Css trick
Another way would be to use css
li.blog_usernames_blog.last
{
display:none;
}