You are here

function path_access_protected_pages in Path Access 7

Same name and namespace in other branches
  1. 6 path_access.module \path_access_protected_pages()

Protected Pages can never be restricted using path_access.

@TODO This should be a variable_get() so it's customisable per-site.

2 calls to path_access_protected_pages()
path_access_admin_configure_form_validate in ./path_access.module
Validate role access form submission.
_path_access_check_permission in ./path_access.module
Access callback; patch access check.

File

./path_access.module, line 210
Restricts access to any Drupal path on a per-role basis.

Code

function path_access_protected_pages($page) {
  $pages = array(
    'user/logout',
  );
  return in_array($page, $pages);
}