function user_rev_diff_user_revision_access in User Revision 7.2
Same name in this branch
- 7.2 diff/user_rev_diff.api.php \user_rev_diff_user_revision_access()
- 7.2 diff/user_rev_diff.module \user_rev_diff_user_revision_access()
Access callback for the user revisions page. Determines whether a user has access to perform a certain operation on a revision.
Parameters
object $user The user object of the user in question.:
mixed $op Either a string or an array:: String: A single word describing the action: 'view', 'edit', 'delete', 'revert' Array: Each element is a full permission string: 'view user revisions', 'edit user revisions', 'delete user revisions', 'revert user revisions'
File
- diff/
user_rev_diff.module, line 94 - Provides functionality to show a diff between two user revisions.
Code
function user_rev_diff_user_revision_access($user, $op = 'view') {
if (is_array($op)) {
return _user_revision_access($user, $op);
}
else {
return _user_revision_access($user, $op . ' user revisions');
}
}