You are here

function page_example_custom_access_callback in Examples for Developers 6

If your custom access callback function checks for permissions, it should still use user_access. You may add whatever additional logic you like, though.

Related topics

1 string reference to 'page_example_custom_access_callback'
page_example_menu in page_example/page_example.module
Implementation of hook_menu().

File

page_example/page_example.module, line 253
This is an example outlining how a module can be used to display a custom page at a given URL.

Code

function page_example_custom_access_callback() {
  global $user;
  return user_access('access simple page') && $user->uid > 0;
}