[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/advanced_help/help_example/ -> help_example.module (source)

   1  <?php
   2  // $Id: help_example.module,v 1.2 2008/04/19 16:45:57 merlinofchaos Exp $
   3  /**
   4   * @file
   5   *
   6   * Provide example help for the advanced help module.
   7   */
   8  /**
   9   * Implementation of hook_menu().
  10   */
  11  function help_example_menu() {
  12    // View help topic index.
  13    $items['admin/help_example'] = array(
  14      'title' => 'Example help',
  15      'page callback' => 'help_example_index_page',
  16      'access arguments' => array('view advanced help index'),
  17      'weight' => 9,
  18    );
  19    return $items;
  20  }
  21  
  22  function help_example_index_page() {
  23    $output = theme('advanced_help_topic', 'help_example', 'about-php');
  24    $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.');
  25    return $output;
  26  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7