page_example_perm
- Versions
- 4.6 – 7
page_example_perm()
Implementation of hook_perm().
Since the access to our new custom pages will be granted based on special permissions, we need to define what those permissions are here. This ensures that they are available to enable on the user role administration pages.
Code
developer/examples/page_example.module, line 33
<?php
function page_example_perm() {
return array('access foo', 'access baz');
}
?>Login or register to post comments 