function page_example_custom_access_callback

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

Code

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