function user_permission

cis7 user.module user_permission()
cle7 user.module user_permission()
elmsmedia7 user.module user_permission()
icor7 user.module user_permission()
meedjum_blog7 user.module user_permission()
mooc7 user.module user_permission()

Implements hook_permission().

5 string references to 'user_permission'
defaultconfig_defaultconfig_components in sites/all/modules/ulmus/defaultconfig/defaultconfig.module
Implements hook_defaultconfig_components().
features_get_info in sites/all/modules/ulmus/features/features.module
Helper for retrieving info from system table.
user_features_api in sites/all/modules/ulmus/features/includes/features.user.inc
Implements hook_features_api().
user_permission_features_export in sites/all/modules/ulmus/features/includes/features.user.inc
Implements hook_features_export().
user_permission_features_rebuild in sites/all/modules/ulmus/features/includes/features.user.inc
Implements hook_features_rebuild(). Iterate through default permissions and update the permissions map.

File

modules/user/user.module, line 848
Enables the user registration and login system.

Code

function user_permission() {
  return array(
    'administer permissions' => array(
      'title' => t('Administer permissions'),
      'restrict access' => TRUE,
    ),
    'administer users' => array(
      'title' => t('Administer users'),
      'restrict access' => TRUE,
    ),
    'access user profiles' => array(
      'title' => t('View user profiles'),
    ),
    'change own username' => array(
      'title' => t('Change own username'),
    ),
    'cancel account' => array(
      'title' => t('Cancel own user account'),
      'description' => t('Note: content may be kept, unpublished, deleted or transferred to the %anonymous-name user depending on the configured <a href="@user-settings-url">user settings</a>.', array('%anonymous-name' => variable_get('anonymous', t('Anonymous')), '@user-settings-url' => url('admin/config/people/accounts'))),
    ),
    'select account cancellation method' => array(
      'title' => t('Select method for cancelling own account'),
      'restrict access' => TRUE,
    ),
  );
}