function path_access_protected_pages in Path Access 6
Same name and namespace in other branches
- 7 path_access.module \path_access_protected_pages()
1 call to path_access_protected_pages()
- path_access_init in ./
path_access.module - Implementation of hook_init().
File
- ./
path_access.module, line 208 - Restricts access to any Drupal path on a per-role basis.
Code
function path_access_protected_pages($page) {
$pages = array(
'logout',
);
return in_array($page, $pages);
}