Closed (fixed)
Project:
Advanced Forum
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
6 Oct 2010 at 19:56 UTC
Updated:
22 Dec 2010 at 05:10 UTC
I don't have time to finish this now and it's not in a committable state so pasting what I have here for now...
function _advanced_forum_preprocess_node(&$variables) {
if ($variables['created'] != $variables['revision_timestamp']) {
$variables['post_edited'] = "Edited by " . $variables['revision_uid'] . " on " . $variables['revision_timestamp'] . ". <br />Reason: " . $variables['log'];
}
if (!empty($post_edited)):
print $post_edited
endif;
Comments
Comment #1
michelleOk, committed this and hopefully didn't pull in any of the image changing stuff accidentally. *fingers crossed*
Michelle
Comment #2
michelleActually... This really needs a viewing permission since it's bypassing the view revisions permission. Re-opening because I don't have time to do it right now.
And, to head off FRs, I don't plan on adding tons of UI and permissions so that this role can see that role and whatnot. Users can either see it or they can't. Specific site customization can always be done in the theme function if needed.
Michelle
Comment #3
michelleAlso somehow missed committing the change to the comment preprocess that makes the new code work with Comment Edited.
Michelle
Comment #4
michelleRestored Comment Edited compatibility. Still need to add a viewing permission.
Michelle
Comment #5
michelletagging
Comment #6
michelleMinimal testing but seems to work so far. Marking this fixed but it could use more testing.
Michelle