function protected_pages_permission in Protected Pages 7
Same name and namespace in other branches
- 7.2 protected_pages.module \protected_pages_permission()
Implements hook_permission().
File
- ./
protected_pages.module, line 13 - This module allows you to protect any page of your website by secure password. You can enter urls of pages to protect and set password per page. Admin (uid = 1) or user with bypass protection permission can view page.
Code
function protected_pages_permission() {
return array(
'bypass pages password protection' => array(
'title' => t('bypass pages password protection'),
'description' => t('Bypass password protection of protected pages'),
),
'access protected page password screen' => array(
'title' => t('access protected page password screen'),
'description' => t('Access protected page password screen.'),
),
);
}