You are here

README.txt in Custom filter 6.2

Custom filter module provides an ability to create some filter without writing
any module.
When we create a new Input format, we will be asked to choose the filters we
want. Some modules hook into filter module and provide additional filters here,
e.g. Textile, GeshiFilter, MathFilter. This module does the same thing, except
that it allows the users with the right permission to define their own filters.

How do we define our own filters?
First, we need to create a filter; a filter is a container for filter rules.
When we create/configure a new input format, every defined filter will appear in
the filters list.

A filter is only a container. We need to define some filter rules if we want it
to work. So, an input format contains one or more filters, each of those has its
own filter rules.

=NOTES=

1. The PHP code used in the replacement rules must set the variable $result, which
   is then used from the module.
2. The module defines a new constant that allows PHP code used in the
   replacement rules to know the version of the API implemented from the module.

File

README.txt
View source
  1. Custom filter module provides an ability to create some filter without writing
  2. any module.
  3. When we create a new Input format, we will be asked to choose the filters we
  4. want. Some modules hook into filter module and provide additional filters here,
  5. e.g. Textile, GeshiFilter, MathFilter. This module does the same thing, except
  6. that it allows the users with the right permission to define their own filters.
  7. How do we define our own filters?
  8. First, we need to create a filter; a filter is a container for filter rules.
  9. When we create/configure a new input format, every defined filter will appear in
  10. the filters list.
  11. A filter is only a container. We need to define some filter rules if we want it
  12. to work. So, an input format contains one or more filters, each of those has its
  13. own filter rules.
  14. =NOTES=
  15. 1. The PHP code used in the replacement rules must set the variable $result, which
  16. is then used from the module.
  17. 2. The module defines a new constant that allows PHP code used in the
  18. replacement rules to know the version of the API implemented from the module.