You are here

function page_example_help in Examples for Developers 6

Same name and namespace in other branches
  1. 8 page_example/page_example.module \page_example_help()
  2. 7 page_example/page_example.module \page_example_help()
  3. 3.x modules/page_example/page_example.module \page_example_help()

Implementation of hook_help().

Related topics

File

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

Code

function page_example_help($path, $arg) {
  switch ($path) {
    case 'admin/help#page_example':
      $output = page_example_description();
      $output .= '<p>';
      $output .= t("The simple page requires 'access simple page'\n        permission. The different permissions page requires\n        'access content' permission. The custom access\n        callback page requires 'access content' permission\n        and the visitor to be signed in. The arguments page\n        requires 'access arguments page' permission.");
      $output .= '</p>';
      return $output;
  }
}