function user_revision_permission in User Revision 7
Same name and namespace in other branches
- 7.2 user_revision.module \user_revision_permission()
Implements hook_permission().
File
- ./
user_revision.module, line 115 - Enables user revision.
Code
function user_revision_permission() {
return array(
'view user revisions' => array(
'title' => t('View revisions'),
'restrict access' => TRUE,
),
'revert user revisions' => array(
'title' => t('Revert revisions'),
'restrict access' => TRUE,
),
'delete user revisions' => array(
'title' => t('Delete revisions'),
),
'choose user revisions' => array(
'title' => t('Choose to create revisions'),
'description' => t('Allow users to create user revisions'),
),
'view own user revisions' => array(
'title' => t('View own revisions'),
'description' => t('Allow users to view their own user revisions'),
),
'revert own user revisions' => array(
'title' => t('Revert own revisions'),
'description' => t('Allow users to revert their own user revisions'),
),
'delete own user revisions' => array(
'title' => t('Delete own revisions'),
'description' => t('Allow users to delete their own user revisions'),
),
);
}