function userprotect_permission in User protect 7
Implements hook_permission().
File
- ./
userprotect.module, line 449 - Main module file for the userprotect module.
Code
function userprotect_permission() {
return array(
'change own e-mail' => array(
'title' => t('Change own e-mail'),
'description' => t('Allow users to edit their own e-mail address.'),
),
'change own password' => array(
'title' => t('Change own password'),
'description' => t('Allow users to edit their own password.'),
),
'change own openid' => array(
'title' => t('Change own OpenID'),
'description' => t('Allow users to edit their own OpenID identities.'),
),
'administer userprotect' => array(
'title' => t('Administer User protect'),
'description' => t('Set up access rules for user administrators for various user-related edits.'),
'restrict access' => TRUE,
),
'edit own account' => array(
'title' => t('Edit own user account'),
'description' => t('Allow users to edit their own account page.'),
),
);
}