Closed (fixed)
Project:
Comment edited
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2008 at 22:22 UTC
Updated:
28 Jan 2009 at 17:20 UTC
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
Comment #1
snufkin commentedI 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.
Comment #2
snufkin commentedActually comment module doesn't store the created time at all.
Comment #3
snufkin commentedFixed in http://drupal.org/cvs?commit=164850 for dev. I added an admin option to actually turn it on, its disabled by default.