filter.module

  1. drupal
    1. drupal6
    2. drupal7

Version 1.204.2.17 (checked in on 2010/11/03 at 14:11:43 by goba)

Framework for handling filtering of content.

Funktionen & Methoden

NameBeschreibung
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.
filter_filter_tipsImplementation of hook_filter_tips().
filter_formGenerates 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_format_load
filter_form_validateValidation callback for filter elements in a form.
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 an HTML string to prevent cross-site-scripting (XSS) vulnerabilities.
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.

Konstanten

NameBeschreibung
FILTER_FORMAT_DEFAULT
FILTER_HTML_ESCAPE
FILTER_HTML_STRIP

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen