page_example_perm

Versions
5 – 6
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

docs-5/examples/page_example.module, line 33

<?php
function page_example_perm() {
  return array('access foo', 'access baz');
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options