You are here

function form_example_help in Examples for Developers 7

Same name and namespace in other branches
  1. 6 form_example/form_example.module \form_example_help()

Implements hook_help().

Related topics

File

form_example/form_example.module, line 194
Examples demonstrating the Drupal Form API.

Code

function form_example_help($path, $arg) {
  switch ($path) {
    case 'examples/form_example/tutorial':

      // TODO: Update the URL.
      $help = t('This form example tutorial for Drupal 7 is the code from the <a href="http://drupal.org/node/262422">Handbook 10-step tutorial</a>');
      break;
    case 'examples/form_example/element_example':
      $help = t('The Element Example shows how modules can provide their own Form API element types. Four different element types are demonstrated.');
      break;
  }
  if (!empty($help)) {
    return '<p>' . $help . '</p>';
  }
}