function ip_login_permission in IP Login 7.3
Same name and namespace in other branches
- 7.2 ip_login.module \ip_login_permission()
Implementation of hook_permission().
File
- ./
ip_login.module, line 85 - Allow user login by IP addresses, ranges or wildcards.
Code
function ip_login_permission() {
// @todo add perms checks to correct places in module
return array(
'administer ip login' => array(
'title' => t('Administer IP Login module'),
'description' => t('Perform administration tasks for IP Login.'),
),
'view any field_ip_login' => array(
'title' => t('View any field_ip_login'),
'description' => t('View the display output of field_ip_login on any user account.'),
),
'view own field_ip_login' => array(
'title' => t('View own field_ip_login'),
'description' => t('View the display output of field_ip_login on own user account.'),
),
'edit any field_ip_login' => array(
'title' => t('Edit any field_ip_login'),
'description' => t('Edit the value of field_ip_login on any user account.'),
),
'edit own field_ip_login' => array(
'title' => t('Edit own field_ip_login'),
'description' => t('Edit the value of field_ip_login on own user account.'),
),
'can log in as another user' => array(
'title' => t('Can login as other user'),
'description' => t('Allow user to logout and login as another user.'),
),
);
}