Needs work
Project:
Anonymous Posting
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2013 at 09:40 UTC
Updated:
24 Aug 2013 at 09:43 UTC
As #2010788: How to find the user of an 'Post as anonymous'? follows the Comment edit workflow by display information when editing a node it would be nice for admin people to show the info when viewing a node to get a link directly to the user.
This needs permission like
function anonymous_posting_permission() {
...
$out['uncloak anonymous user'] = array(
'title' => t('Reveal the anonymous user'),
);
...
}
and similar code from #2010788: How to find the user of an 'Post as anonymous'? to theme the user like
function anonymous_posting_preprocess_username(&$vars) {
$account = $vars['account'];
if (isset($account->nid) && user_access('uncloak anonymous user')) {
//TODO: get the uid for this anonymous post
$uid = anonymous_posting_get_uid($account->nid);
$vars['extra'] = ' aka ' . l($user->name, "user/$uid");
}
}
Comments
Comment #1
drikc commentedWould be nice to have!