Ordering of Filters

Sometimes, the order in which filters are applied is important. For example, if you were to install the Smileys module so that users could decorate their posts with happy or sad faces, the Smileys module filter would look for various character sequences and replace them with HTML image tags. If the input format also included the HTML filter and it was configured to strip HTML tags, and it was applied alter the smileys, the smileys would simply disappear. To avoid conflicts like this, Drupal allows you to set the order in which filters are applied.

The Rearrange tab shows a list of enabled filters for an input format and their weight. Filters with smaller weights are executed earlier than filters with larger weights. If you are having any problems with your filters not generating the output that you expect, take a look at the order and try to determine where the conflict arises.

Was this article helpful?

0 0

Post a comment