filter.module

Version

1.122.2.8 (checked in on 2008/01/10 at 22:18:19 by killes)

Description

Framework for handling filtering of content.

Constants

Namesort iconDescription
FILTER_FORMAT_DEFAULT
FILTER_HTML_ESCAPE
FILTER_HTML_STRIP

Functions

Namesort iconDescription
check_markupRun all the enabled filters on a piece of text.
filter_accessReturns true if the user is allowed to access this format.
filter_admin_configureMenu callback; display settings defined by filters.
filter_admin_deleteMenu callback; confirm deletion of a format.
filter_admin_delete_submitProcess filter delete form submission.
filter_admin_format_formGenerate a filter format form.
filter_admin_format_form_submitProcess filter format form submissions.
filter_admin_format_form_validateValidate filter format form submissions.
filter_admin_orderMenu callback; display form for ordering filters for a format.
filter_admin_order_submitProcess filter order configuration form submission.
filter_admin_overviewDisplays a list of all input formats and which one is the default
filter_admin_overview_submit
filter_filterImplementation of hook_filter(). Contains a basic set of essential filters. HTML filter: Validates user-supplied HTML, transforming it as necessary. PHP evaluator: Executes PHP code. Line break converter: Converts newlines into paragraph and break tags.
filter_filter_tipsImplementation of hook_filter_tips().
filter_formGenerate a selector for choosing a format in a form.
filter_formatsRetrieve a list of input formats.
filter_format_allowcacheCheck if text in a certain input format is allowed to be cached.
filter_form_validate
filter_helpImplementation of hook_help().
filter_list_allBuild a list of all filters.
filter_list_formatRetrieve a list of filters for a certain format.
filter_menuImplementation of hook_menu().
filter_permImplementation of hook_perm().
filter_resolve_formatResolve a format id, including the default format.
filter_tips_longMenu callback; show a page with long filter tips.
filter_xssFilters XSS. Based on kses by Ulf Harnhammar, see http://sourceforge.net/projects/kses
filter_xss_adminVery permissive XSS/HTML filter for admin-only use.
filter_xss_bad_protocolProcesses an HTML attribute value and ensures it does not contain an URL with a disallowed protocol (e.g. javascript:)
theme_filter_admin_orderTheme filter order configuration form.
theme_filter_admin_overview
theme_filter_tipsFormat a set of filter tips.
_filter_autopConvert line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop
_filter_htmlHTML filter. Provides filtering of input into accepted HTML.
_filter_html_settingsSettings for the HTML filter.
_filter_list_cmpHelper function for sorting the filter list by filter name.
_filter_tipsHelper function for fetching filter tips.
_filter_xss_attributesProcesses a string of HTML attributes.
_filter_xss_splitProcesses an HTML tag.
 
 

Drupal is a registered trademark of Dries Buytaert.