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'] = array(
|
13
|
'title' => 'Example help',
|
14
|
'page callback' => 'help_example_index_page',
|
15
|
'access arguments' => array('view advanced help index'),
|
16
|
'weight' => 9,
|
17
|
);
|
18
|
return $items;
|
19
|
}
|
20
|
|
21
|
/**
|
22
|
* Topic index callback.
|
23
|
*/
|
24
|
function help_example_index_page() {
|
25
|
$output = theme('advanced_help_topic', array(
|
26
|
'module' => 'help_example',
|
27
|
'topic' => 'about-php',
|
28
|
));
|
29
|
$output .= ' ' . 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
|
}
|