summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-13 19:37:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-13 19:37:27 +0000
commita4623f1f713ca3e23c8cbe7b9090f5642ff72363 (patch)
tree7194bac15760b796c48227070c595beece8903d0
parent2c942561e21bb5311731cfc767dc4670d98af74f (diff)
downloadbrdo-a4623f1f713ca3e23c8cbe7b9090f5642ff72363.tar.gz
brdo-a4623f1f713ca3e23c8cbe7b9090f5642ff72363.tar.bz2
- Patch #480152 by jhodgdon: updated filter API documentation.
-rw-r--r--modules/filter/filter.module19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 41df662b2..f2bb71634 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -598,13 +598,20 @@ function theme_filter_guidelines($format) {
*/
/**
- * Implement 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:
+ * Implement hook_filter().
+ *
+ * Set up a basic set of essential filters:
+ * - Limit allowed HTML tags:
+ * Restricts user-supplied HTML to certain tags, and removes dangerous
+ * components in allowed tags.
+ * - Convert line breaks:
* Converts newlines into paragraph and break tags.
+ * - Convert URLs into links:
+ * Converts URLs and e-mail addresses into links.
+ * - Correct broken HTML:
+ * Fixes faulty HTML.
+ * - Escape all HTML:
+ * Converts all HTML tags into visible text.
*/
function filter_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {