Custom filter

KiamLaLuno - October 21, 2007 - 10:10

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 releasesDateSizeLinksStatus
6.x-2.0-beta72009-Oct-2117.29 KBSupported for 6.xThis release is supported but is not currently the recommended release for 6.x.
6.x-1.0-beta112009-Oct-2115.3 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.62009-Oct-2116.97 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-Nov-0717.39 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
6.x-1.x-dev2009-Nov-0715.43 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.