You are here

function userpoints_permission in User Points 7.2

Same name and namespace in other branches
  1. 7 userpoints.module \userpoints_permission()

Implements hook_permission().

File

./userpoints.module, line 415

Code

function userpoints_permission() {
  return array(
    'view own userpoints' => array(
      'title' => t('View own !points', userpoints_translation()),
      'description' => t('Allows to view own !points.', userpoints_translation()),
    ),
    'view userpoints' => array(
      'title' => t('View all !points', userpoints_translation()),
      'description' => t('Allows to view the !points of other users.', userpoints_translation()),
    ),
    'view own userpoints transactions' => array(
      'title' => t('View own transactions'),
      'description' => t('Allows to view own userpoints transactions history.', userpoints_translation()),
    ),
    'view userpoints transactions' => array(
      'title' => t('View all transactions'),
      'description' => t('Allows to view the userpoints transactions history of other users.', userpoints_translation()),
    ),
    'add userpoints' => array(
      'title' => t('Add new !point transactions', userpoints_translation()),
      'description' => t('Allows to create new !point transactions.', userpoints_translation()),
    ),
    'edit userpoints' => array(
      'title' => t('Edit !point transactions', userpoints_translation()),
      'description' => t('Allows to modify existing !point transactions, including the ability to view transaction history for all users.', userpoints_translation()),
    ),
    'moderate userpoints' => array(
      'title' => t('Moderate !point transactions', userpoints_translation()),
      'description' => t('Allows to approve or disapprove !point transactions.', userpoints_translation()),
    ),
    'administer userpoints' => array(
      'title' => t('Administer Userpoints'),
      'description' => t('Allows to configure the settings and includes full read and write access of all !point transactions.', userpoints_translation()),
    ),
  );
}