You are here

function user_revision_permission in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.module \user_revision_permission()

Implements hook_permission().

File

./user_revision.module, line 144
Enables user revision.

Code

function user_revision_permission() {
  return array(
    'view user revisions' => array(
      'title' => t('View any user revisions'),
      'description' => t('Also required to administer user permissions'),
      'restrict access' => TRUE,
    ),
    'revert user revisions' => array(
      'title' => t('Revert any user revisions'),
      'restrict access' => TRUE,
    ),
    'delete user revisions' => array(
      'title' => t('Delete any user revisions'),
    ),
    'choose user revisions' => array(
      'title' => t('Choose to create revisions'),
      'description' => t('Allow users to choose whether to create their own revisions'),
    ),
    'view own user revisions' => array(
      'title' => t('View own revisions'),
      'description' => t('Allow users to view their own revisions'),
    ),
    'revert own user revisions' => array(
      'title' => t('Revert own revisions'),
      'description' => t('Allow users to revert their own revisions'),
    ),
    'delete own user revisions' => array(
      'title' => t('Delete own revisions'),
      'description' => t('Allow users to delete their own revisions'),
    ),
  );
}