filter.module

Version 1.363 (checked in on 2011/02/19 at 00:29:40 by dries)

Framework for handling filtering of content.

Functions & methods

NameDescription
check_markupRun all the enabled filters on a piece of text.
filter_accessChecks if a user has access to a particular text format.
filter_admin_format_titleDisplay a text format form title.
filter_default_formatReturns the ID of the default text format for a particular user.
filter_dom_loadParses an HTML snippet and returns it as a DOM object.
filter_dom_serializeConverts a DOM object back to an HTML snippet.
filter_dom_serialize_escape_cdata_elementAdds comments around the <!CDATA section in a dom element.
filter_element_infoImplements hook_element_info().
filter_fallback_formatReturns the ID of the fallback text format that all users have access to.
filter_fallback_format_titleReturns the title of the fallback text format.
filter_filter_infoImplements hook_filter_info().
filter_formatsRetrieve a list of text formats, ordered by weight.
filter_formats_resetResets text format caches.
filter_format_allowcacheCheck if text in a certain text format is allowed to be cached.
filter_format_disableDisable a text format.
filter_format_existsDetermines if a text format exists.
filter_format_loadLoad a text format object from the database.
filter_format_saveSave a text format object to the database.
filter_form_access_denied#pre_render callback for #type 'text_format' to hide field value from prying eyes.
filter_get_filtersReturn a list of all filters provided by modules.
filter_get_formats_by_roleRetrieves a list of text formats that are allowed for a given role.
filter_get_roles_by_formatRetrieves a list of roles that are allowed to use a given text format.
filter_helpImplements hook_help().
filter_list_formatRetrieve a list of filters for a given text format.
filter_menuImplements hook_menu().
filter_modules_disabledImplements hook_modules_disabled().
filter_modules_enabledImplements hook_modules_enabled().
filter_permissionImplements hook_permission().
filter_permission_nameReturns the machine-readable permission name for a provided text format.
filter_process_formatExpands an element into a base element with text format selector attached.
filter_themeImplements hook_theme().
theme_filter_guidelinesReturns HTML for guidelines for a text format.
theme_filter_tips_more_infoReturns HTML for a link to the more extensive filter tips.
theme_text_format_wrapperReturns HTML for a text format-enabled form element.
_filter_autopConvert line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop
_filter_autop_tipsFilter tips callback for auto-paragraph filter.
_filter_disable_format_accessAccess callback for deleting text formats.
_filter_format_is_cacheableHelper function to determine whether the output of a given text format can be cached.
_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_escapeEscapes all HTML tags, so they will be visible instead of being effective.
_filter_html_escape_tipsFilter tips callback for HTML escaping filter.
_filter_html_settingsSettings callback for the HTML filter.
_filter_html_tipsFilter tips callback for 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 into hyperlinks.
_filter_url_escape_commentspreg_replace callback to escape contents of HTML comments
_filter_url_parse_email_linkspreg_replace callback to make links out of e-mail addresses.
_filter_url_parse_full_linkspreg_replace callback to make links out of absolute URLs.
_filter_url_parse_partial_linkspreg_replace callback to make links out of domain names starting with "www."
_filter_url_settingsSettings callback for URL filter.
_filter_url_tipsFilter tips callback for URL filter.
_filter_url_trimShortens long URLs to http://www.example.com/long/url...