Projet

Général

Profil

Paste
Télécharger (819 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / advanced_help / help_example / help_example.module @ 00c2605a

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 .= '&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
}