function form_example_help in Examples for Developers 6
Same name and namespace in other branches
- 7 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 - Examples demonstrating the Drupal Form API.
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>';
}
}