filter.module

Version 1.300 (checked in on 2009/10/23 at 22:24:14 by webchick)

Framework for handling filtering of content.

Functions

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_cronImplement hook_cron().
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_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_infoImplement hook_filter_info().
filter_formGenerates a selector for choosing a format in a form.
filter_formatsRetrieve a list of text formats, ordered by weight.
filter_formats_resetResets the static cache of all text formats.
filter_format_allowcacheCheck if text in a certain text format is allowed to be cached.
filter_format_deleteDelete a text format.
filter_format_loadLoad a text format object from the database.
filter_format_saveSave a text format object to the database.
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_helpImplement hook_help().
filter_list_formatRetrieve a list of filters for a given text format.
filter_menuImplement hook_menu().
filter_permissionImplement hook_permission().
filter_permission_nameReturns the machine-readable permission name for a provided text format.
filter_themeImplement hook_theme().
theme_filter_guidelinesFormat guidelines for a text format.
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_autop_tipsFilter tips callback for auto-paragraph filter.
_filter_delete_format_accessAccess callback for deleting text formats.
_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 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 callback for URL filter.
_filter_url_tipsFilter tips callback for URL filter.
_filter_url_trimShortens long URLs to http://www.example.com/long/url...
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.