Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a4623f1f
Commit
a4623f1f
authored
Jun 13, 2009
by
Dries
Browse files
- Patch
#480152
by jhodgdon: updated filter API documentation.
parent
2c942561
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/filter/filter.module
View file @
a4623f1f
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment