| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 1256 lines (49 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| filter_help($path, $arg) X-Ref |
| Implementation of hook_help(). |
| filter_theme() X-Ref |
| Implementation of hook_theme() |
| filter_menu() X-Ref |
| Implementation of hook_menu(). |
| filter_format_load($arg) X-Ref |
| No description |
| filter_admin_format_title($format) X-Ref |
| Display a filter format form title. |
| filter_perm() X-Ref |
| Implementation of hook_perm(). |
| filter_cron() X-Ref |
| Implementation of hook_cron(). Expire outdated filter cache entries |
| filter_filter_tips($delta, $format, $long = FALSE) X-Ref |
| Implementation of hook_filter_tips(). |
| filter_formats($index = NULL) X-Ref |
| Retrieve a list of input formats. |
| filter_list_all() X-Ref |
| Build a list of all filters. |
| _filter_list_cmp($a, $b) X-Ref |
| Helper function for sorting the filter list by filter name. |
| filter_resolve_format($format) X-Ref |
| Resolve a format id, including the default format. |
| filter_format_allowcache($format) X-Ref |
| Check if text in a certain input format is allowed to be cached. |
| filter_list_format($format) X-Ref |
| Retrieve a list of filters for a certain format. |
| check_markup($text, $format = FILTER_FORMAT_DEFAULT, $check = TRUE) X-Ref |
| Run all the enabled filters on a piece of text. param: $text param: $format param: $check |
| filter_form($value = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = array('format') X-Ref |
| Generates a selector for choosing a format in a form. param: $value param: $weight param: $parents return: |
| filter_form_validate($form) X-Ref |
| Validation callback for filter elements in a form. |
| filter_access($format) X-Ref |
| Returns TRUE if the user is allowed to access this format. |
| _filter_tips($format, $long = FALSE) X-Ref |
| Helper function for fetching filter tips. |
| theme_filter_tips_more_info() X-Ref |
| Format a link to the more extensive filter tips. |
| filter_filter($op, $delta = 0, $format = -1, $text = '') X-Ref |
| Implementation 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: Converts newlines into paragraph and break tags. |
| _filter_html_settings($format) X-Ref |
| Settings for the HTML filter. |
| _filter_html($text, $format) X-Ref |
| HTML filter. Provides filtering of input into accepted HTML. |
| _filter_url_settings($format) X-Ref |
| Settings for URL filter. |
| _filter_url($text, $format) X-Ref |
| URL filter. Automatically converts text web addresses (URLs, e-mail addresses, ftp links, etc.) into hyperlinks. |
| _filter_htmlcorrector($text) X-Ref |
| Scan input and make sure that all HTML tags are properly closed and nested. |
| _filter_url_parse_full_links($match) X-Ref |
| Make links out of absolute URLs. |
| _filter_url_parse_partial_links($match) X-Ref |
| Make links out of domain names starting with "www." |
| _filter_url_trim($text, $length = NULL) X-Ref |
| Shortens long URLs to http://www.example.com/long/url... |
| _filter_autop($text) X-Ref |
| Convert line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop |
| filter_xss_admin($string) X-Ref |
| Very permissive XSS/HTML filter for admin-only use. Use only for fields where it is impractical to use the whole filter system, but where some (mainly inline) mark-up is desired (so check_plain() is not acceptable). Allows all tags that can be used inside an HTML body, save for scripts and styles. |
| filter_xss($string, $allowed_tags = array('a', 'em', 'strong', 'cite', 'code', 'ul', 'ol', 'li', 'dl', 'dt', 'dd') X-Ref |
| Filters an HTML string to prevent cross-site-scripting (XSS) vulnerabilities. Based on kses by Ulf Harnhammar, see http://sourceforge.net/projects/kses. For examples of various XSS attacks, see http://ha.ckers.org/xss.html. This code does four things: - Removes characters and constructs that can trick browsers. - Makes sure all HTML entities are well-formed. - Makes sure all HTML tags and attributes are well-formed. - Makes sure no HTML tags contain URLs with a disallowed protocol (e.g. javascript:). param: $string param: $allowed_tags return: |
| _filter_xss_split($m, $store = FALSE) X-Ref |
| Processes an HTML tag. param: @m param: $store return: |
| _filter_xss_attributes($attr) X-Ref |
| Processes a string of HTML attributes. return: |
| filter_xss_bad_protocol($string, $decode = TRUE) X-Ref |
| Processes an HTML attribute value and ensures it does not contain an URL with a disallowed protocol (e.g. javascript:) param: $string param: $decode return: |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |