Defining a filter in a module. (drupal 6)
To show all the capabilities of the filter system, we will define two filters in this module. One will substitute the string "foo" with an administratively- defined replacement string. The other will find a custom XML tag, <time />, and replace it by the current time.
This example is part of the Examples for Developers Project which you can download and experiment with here: http://drupal.org/project/examples
| Name | Description |
|---|---|
| filter_example_filter | Implementation of hook_filter(). |
| filter_example_filter_tips | Implementation of hook_filter_tips(). |
examples/