Implementation of hook_help().
Throughout Drupal, hook_help() is used to display help text at the top of pages. Some other parts of Drupal pages get explanatory text from these hooks as well. We use it here to provide a description of the module on the module administration page.
File
- developer/
examples/ nodeapi_example.module, line 31 - This is an example outlining how a module can be used to extend existing content types.
Code
function nodeapi_example_help($section) {
switch ($section) {
case 'admin/modules#description':
// This description is shown in the listing at admin/modules.
return t('An example module showing how to extend existing content types.');
}
}
Login or register to post comments