function userpoints_permission in User Points 7
Same name and namespace in other branches
- 7.2 userpoints.module \userpoints_permission()
Implements hook_permission().
File
- ./
userpoints.module, line 399
Code
function userpoints_permission() {
return array(
'view own userpoints' => array(
'title' => t('View own !points', userpoints_translation()),
'description' => t('Allows to view own !points, including own !point transactions.', userpoints_translation()),
),
'view userpoints' => array(
'title' => t('View all !points', userpoints_translation()),
'description' => t('Allows to view the !points of other users, but not the transactions.', 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()),
),
);
}