How to remove the users' blog link

eddy147 - January 26, 2008 - 16:51

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

Great. Thanks. Don't forget

jmalm - March 7, 2009 - 08:29

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

 
 

Drupal is a registered trademark of Dries Buytaert.