Version

1.8 (checked in on 2007/01/29 at 16:19:57 by bdragon)

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

Namesort iconDescription
filter_example_filterImplementation of hook_filter().
filter_example_filter_tipsImplementation of hook_filter_tips().