Further modules included.
[yaffs-website] / web / modules / contrib / advanced_help / help_example / help_example.module
1 <?php
2 /**
3  * @file
4  * Provide example help for the advanced help module.
5  */
6
7 /**
8  * Implements hook_menu().
9  */
10 function help_example_menu() {
11   // View help topic index.
12   $items['admin/help_example'] = [
13     'title' => 'Example help',
14     'page callback' => 'help_example_index_page',
15     'access arguments' => ['view advanced help index'],
16     'weight' => 9,
17   ];
18   return $items;
19 }
20
21 /**
22  * Help topic index.
23  */
24 function help_example_index_page() {
25   $output = theme('advanced_help_topic', [
26     'module' => 'help_example',
27     'topic' => 'about-php',
28   ]);
29   $output .= '&nbsp;' . t('Click the help icon to view some example help about the PHP programming language (from wikipedia.org). Be sure to run cron to update the index if you want to try out the search features.');
30   return $output;
31 }