filter.module

Version

1.204.2.5 (checked in on 2008/08/18 at 10:40:32 by dries)

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_format_titleDisplay a filter format form title.
filter_cronImplementation of hook_cron().
filter_filterImplementation of hook_filter(). Contains a basic set of essential filters. HTML filter: Validates user-supplied HTML, transforming it as necessary. Line break converter: Converts newlines into paragraph and break tags. URL and e-mail address...
filter_filter_tipsImplementation of hook_filter_tips().
filter_formGenerate a selector for choosing a format in a form. See alsofilter_form_validate()
filter_formatsRetrieve a list of input formats.
filter_format_allowcacheCheck if text in a certain input format is allowed to be cached.
filter_format_load
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_themeImplementation of hook_theme()
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_tips_more_infoFormat a link to the more extensive 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_htmlcorrectorScan input and make sure that all HTML tags are properly closed and nested.
_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_urlURL filter. Automatically converts text web addresses (URLs, e-mail addresses, ftp links, etc.) into hyperlinks.
_filter_url_parse_full_linksMake links out of absolute URLs.
_filter_url_parse_partial_linksMake links out of domain names starting with "www."
_filter_url_settingsSettings for URL filter.
_filter_url_trimShortens long URLs to http://www.example.com/long/url...
_filter_xss_attributesProcesses a string of HTML attributes.
_filter_xss_splitProcesses an HTML tag.
 
 

Drupal is a registered trademark of Dries Buytaert.