function htmlpurifier_filter_info in HTML Purifier 7.2
Same name and namespace in other branches
- 7 htmlpurifier.module \htmlpurifier_filter_info()
Implements hook_filter_info().
File
- ./
htmlpurifier.module, line 206 - Implements HTML Purifier as a Drupal filter.
Code
function htmlpurifier_filter_info() {
$filters['htmlpurifier'] = array(
'title' => t('HTML Purifier'),
'description' => t('Removes malicious HTML code and ensures that the ' . 'output is standards compliant. <strong>Warning:</strong> For ' . 'performance reasons, please ensure that there are no highly dynamic ' . 'filters before HTML Purifier. '),
'process callback' => '_htmlpurifier_process',
'settings callback' => '_htmlpurifier_settings',
'default settings' => array(
'htmlpurifier_config_name' => 'htmlpurifier_basic',
),
'tips callback' => '_htmlpurifier_filter_tips',
);
return $filters;
}