node_access_example_perm()
documentation/examples/node_access_example.module, line 33
Implementation of hook_perm().
In this example, we will use a simple permission to determine whether a user has access to "private" content. This permission is defined here.
<?php
function node_access_example_perm() {
return array('access private content', 'edit private content');
}
?>