Custom filter
This module allows you to create content filter using regular expressions. Instead of creating a new module for each filter you need, now you can easily create and organize your own filters. Your filter will appear in the input format configuration page.
For a description of the regular expression syntax, see PCRE regex syntax; for a description of the modifiers, see Possible modifiers in regex patterns. If you know the syntax used by Perl regular expressions, see Differences From Perl.
Supported versions
Starting from September 1, the Drupal 5 branch will have a limited support (which means I will eventually apply the patches suggested).
If somebody is willing to become co-maintainer for the Drupal 5 version, I will be more than happy to accept the offer, and make him/her co-maintainer.
Differences between branch 6.x-1, and 6.x-2
- Branch 6.x-2 requires PHP 5.1.0, or higher; branch 6.x-1 is compatible with PHP 4.
- Starting from now, only the branch 6.x-2 will get new features; the code in branch 6.x-1 will get only bug fixes.
Other notes
Because the strings used for the description and the help text of the custom filters are dynamic (i.e., taken from a database table), it is not possible to translate them through t(). For this reason, this module can be used in a Drupal-powered site where the language used is only one; differently, if users would be able to select a language for the user interface, they could see the description of any filters created with this module in the language used from the user that created the custom filter.
If you have the need to create a filter that uses translatable strings, you should create your own custom module. I plan to make the function used by the module to handle the replacement rules public, so third-party modules can use it.
Previous maintainer
The original maintainer of this project is Ari Prasetyo that I personally thanks for this module; I use it in my local LAN, and it saved me a lot of time.
I thank Ari also for making me the actual maintainer of this project.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-2.0-beta7 | 2009-Oct-21 | 17.29 KB | Download · Release notes | Supported for 6.x | |
| 6.x-1.0-beta11 | 2009-Oct-21 | 15.3 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.6 | 2009-Oct-21 | 16.97 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-2.x-dev | 2009-Nov-07 | 17.39 KB | Download · Release notes | Development snapshot | |
| 6.x-1.x-dev | 2009-Nov-07 | 15.43 KB | Download · Release notes | Development snapshot | |
