How to disable Drupal comment block timestamp?

Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website. Official website:

We will disable the comment block timestamp, something like this:

# Lorem ipsum...
1 weeks 1 day ago
# Lorem ipsum...
1 day ago

After hack:

# Lorem ipsum...
# Lorem ipsum...

This trick requires core hacks, please be careful.

Open the following file with text editor:


Find the following line:

$items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .' '. t('@time ago', array('@time' => format_interval(time() - $comment->timestamp)));

Replace the line with:

$items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid);

There you go, its done 🙂

Tagged with 
About sepedatua
I am nothing special, of this I am sure. I am a common man with common thoughts and I’ve led a common life. There are no monuments dedicated to me and my name will soon be forgotten, but I’ve loved another with all my heart and soul, and to me, this has always been enough.

One thought on “How to disable Drupal comment block timestamp?

  1. Thought I would comment and say neat theme, did you code it on your own? It looks really good!

This site uses Akismet to reduce spam. Learn how your comment data is processed.