Defined in packages/acs-core/tcl-documentation-procs.tclA filter rule determines what filters are applied to a given value. The code is passed the
name of the formal argument and the list of filters currently being applied, and should
on that basis modify the list of filters to suit its needs. Usually a filter rule will add
a certain filter, unless some list of filters are already present.
Unlike the filters themselves (registered with ad_page_contract_filter
, all rules
are always applied to all formal arguments of all pages.
- Parameters:
-
name - filter rules must be named. The name isn't referred to anywhere.
proc_args - the filter rule proc must take two arguments, name
and filters
,
although you can name them as you like. The first will be set to the name of the formal argument,
the second will be upvar'd to the list of filters, so that any modifications you make to this list
are reflected in the actual list of filters being applied.
doc_string - let other programmers know what your filter rule does.
body - the code to manipulate the filter list.
- Author:
- Lars Pind <lars@pinds.com>
- Created:
- 25 July 2000