The comment create time is afaik the latest edited time. Since this module takes care of that, can the comment create time be set to that of intial creation?

Thanks.

Comments

snufkin’s picture

Status: Active » Postponed (maintainer needs more info)

I don't think I can give you this. Comment module loads the timestamp for the submitted part, and there is no way to hook into that process. There is a way I can help you get this to be displayed though.

You will need to create your own comment template, and preprocess hooks. When creating the variables for the template use the theme('comment_edited_submitted') function to get the proper created dates.

This is not a very elegant solution, there is a database call in the theme function, but because comment module doesn't expose hooks when it's exposing them, I can't do this at a better time.

This change is in my local copy, I haven't committed it. Please let me know if this solution would work for you.

snufkin’s picture

Status: Postponed (maintainer needs more info) » Active

Actually comment module doesn't store the created time at all.

snufkin’s picture

Status: Active » Fixed

Fixed in http://drupal.org/cvs?commit=164850 for dev. I added an admin option to actually turn it on, its disabled by default.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.