Filtering functions in Drupal 6
Functions for interacting with the content filtering system.
For more info, see the hook_filter() documentation.
Note: because filters can inject JavaScript or execute PHP code, security is vital here. When a user supplies a $format, you should validate it with filter_access($format) before accepting/using it. This is normally done in the validation stage of the node system. You should for example never make a preview of content in a disallowed format.
File
- modules/
filter/ filter.module, line 398 - Framework for handling filtering of content.
Functions
Name | Location | Description |
---|---|---|
check_markup |
modules/ |
Run all the enabled filters on a piece of text. |
filter_access |
modules/ |
Returns TRUE if the user is allowed to access this format. |
filter_form |
modules/ |
Generates a selector for choosing a format in a form. |
filter_form_validate |
modules/ |
Validation callback for filter elements in a form. |