filter_example.module

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

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

NameDescription
filter_example_filterImplementation of hook_filter().
filter_example_filter_tipsImplementation of hook_filter_tips().
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.