help_example.module in Advanced Help 5
Same filename and directory in other branches
Provide example help for the advanced help module.
File
help_example/help_example.moduleView source
<?php
/**
* @file
*
* Provide example help for the advanced help module.
*/
/**
* Implementation of hook_menu().
*/
function help_example_menu() {
// View help topic index.
$items[] = array(
'path' => 'admin/help_example',
'title' => 'Example help',
'callback' => 'help_example_index_page',
'access' => user_access('view advanced help index'),
'weight' => 9,
);
return $items;
}
function help_example_index_page() {
$output = theme('advanced_help_topic', 'help_example', 'about-php');
$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.');
return $output;
}
Functions
Name | Description |
---|---|
help_example_index_page | |
help_example_menu | Implementation of hook_menu(). |