function form_example_help

Same name in other branches
  1. 7.x-1.x form_example/form_example.module \form_example_help()

Implements hook_help() to provide a bit of help.

File

form_example/form_example.module, line 161

Code

function form_example_help($path, $arg) {
    switch ($path) {
        case 'examples/form_example/tutorial':
            $help = t('This form example tutorial for Drupal 6 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>';
    }
}