filter_example.module
Version
1.6 (checked in on 2004/09/08 at 21:22:26 by JonBob)
Description
This is an example outlining how a module can be used to define a filter to be run on user-submitted content before it is output to the browser.
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.
Functions
| Name | Description |
|---|---|
| filter_example_filter | Implementation of hook_filter(). |
| filter_example_filter_tips | Implementation of hook_filter_tips(). |
| filter_example_help | Implementation of hook_help(). |
