home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (help_example.module)

This example Drupal source code file (help_example.module) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, callback, function, help, help_example_index_page, nbsp, output, php, programming, return, the, title, to, you

The help_example.module Drupal example source code

<?php
// $Id: help_example.module,v 1.2 2008/04/19 16:45:57 merlinofchaos Exp $
/**
 * @file
 *
 * Provide example help for the advanced help module.
 */
/**
 * Implementation of hook_menu().
 */
function help_example_menu() {
  // View help topic index.
  $items['admin/help_example'] = array(
    'title' => 'Example help',
    'page callback' => 'help_example_index_page',
    'access arguments' => array('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;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal help_example.module source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.