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

drikc’s picture

Would be nice to have!