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

michelle’s picture

Status: Active » Fixed

Ok, committed this and hopefully didn't pull in any of the image changing stuff accidentally. *fingers crossed*

Michelle

michelle’s picture

Status: Fixed » Active

Actually... 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

michelle’s picture

Also somehow missed committing the change to the comment preprocess that makes the new code work with Comment Edited.

Michelle

michelle’s picture

Restored Comment Edited compatibility. Still need to add a viewing permission.

Michelle

michelle’s picture

tagging

michelle’s picture

Status: Active » Fixed

Minimal testing but seems to work so far. Marking this fixed but it could use more testing.

Michelle

Status: Fixed » Closed (fixed)

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