Hi guys,
I've started working on a pattern component for configuring input format filters. At the moment it allows you to configure the roles which are allowed to use a given input format filter. I might also work on configuring the other parts of input format filters (e.g. filters to link each input format to).
Please find the code attached.
Example:
<filter name="Full HTML">
<roles>
<role>Editor</role>
<role>Forum User</role>
</roles>
</filter>
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | filter.inc_.zip | 1.31 KB | hiddentao |
| filter.inc_.zip | 1.07 KB | hiddentao |
Comments
Comment #1
hiddentao commentedI've improved the component.
The root tag is now
format. You can now rename input formats and assign filters to them. The code checks all role and filter names to ensure that the given names are all valid.Examples...
1) Configuring an existing input format:
2) Adding a new format:
3) Renaming a format: