user_perm
Definition
user_perm()
modules/user/user.module, line 572
Description
Implementation of hook_perm().
Code
<?php
function user_perm() {
return array(
'administer permissions' => array(
'title' => t('Administer permissions'),
'description' => t('Manage the permissions assigned to user roles. %warning', array('%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
),
'administer users' => array(
'title' => t('Administer users'),
'description' => t('Manage or block users, and manage their role assignments.'),
),
'access user profiles' => array(
'title' => t('Access user profiles'),
'description' => t('View profiles of users on the site, which may contain personal information.'),
),
'change own username' => array(
'title' => t('Change own username'),
'description' => t('Select a different username.'),
),
'cancel account' => array(
'title' => t('Cancel account'),
'description' => t('Remove or disable own user account and unpublish, anonymize, or remove own submissions depending on the configured <a href="@user-settings-url">user settings</a>.', array('@user-settings-url' => url('admin/user/settings'))),
),
'select account cancellation method' => array(
'title' => t('Select method for cancelling own account'),
'description' => t('Select the method for cancelling own user account. %warning', array('%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
),
);
}
?> 