filter_example_help

Versions
4.6 – 4.7
filter_example_help($section)

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.

Code

developer/examples/filter_example.module, line 22

<?php
function filter_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 define a custom filter.');
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.