You are here

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

Namesort descending Location Description
check_markup modules/filter/filter.module Run all the enabled filters on a piece of text.
filter_access modules/filter/filter.module Returns TRUE if the user is allowed to access this format.
filter_form modules/filter/filter.module Generates a selector for choosing a format in a form.
filter_form_validate modules/filter/filter.module Validation callback for filter elements in a form.