function _set_revision_author_values in Revisioning 6.4
Same name and namespace in other branches
- 6.3 revisioning_tokens.inc \_set_revision_author_values()
1 call to _set_revision_author_values()
- revisioning_token_values in ./
revisioning_tokens.inc - Implementation of hook_token_values().
File
- ./
revisioning_tokens.inc, line 66 - Add tokens pertaining to the Revisioning module.
Code
function _set_revision_author_values($uid, &$values) {
$account = db_fetch_object(db_query('SELECT name, mail FROM {users} WHERE uid=%d', $uid));
$values['revision-author-uid'] = $uid;
$values['revision-author-name'] = check_plain($account->name);
$values['revision-author-name-raw'] = $account->name;
$values['revision-author-mail'] = check_plain($account->mail);
$values['revision-author-mail-raw'] = $account->mail;
}