Comment edited

snufkin - December 22, 2008 - 13:26

This module displays a customizable message at the bottom of a comment when it has been edited. The message by default is wrapped into a div, but it can be overridden by implementing the theme function theme_comment_edited() in your theme. Also there is a configuration option which forces the module to print this message into the $comment->comment_edited variable instead of the $comment->comment, so you have more freedom in where to place the message.

Planned changes

6.x-1.3

- add a reason for edit field for moderators

Changelog

6.x-1.2

#350954: Control who can see message
#400424: Option to put "edited by" string below comment body
#350955: Write documentation (code and drupal.org) for 1.2 release

Themers are now able to place the comment edited message elsewhere. For this select the "Use template" option in the configuration page, then in your preprocess function use the $comment->comment_edited property. It contains the themed messages.

A new theme function is responsible to render both of the messages now: theme_comment_edited_messages($messages)

Time limited editing is one of the upcoming features, allows administrators to set an time period during which comments are editable. It comes with permission for each content type to skip this edit restriction, so moderators can operate still.

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.2 Download (10.87 KB) 2009-Apr-29 Notes

Development releases

Version Downloads Date Links
6.x-1.x-dev Download (12.86 KB) 2009-Nov-19 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.