You are here

function htmlpurifier_filter_info in HTML Purifier 7

Same name and namespace in other branches
  1. 7.2 htmlpurifier.module \htmlpurifier_filter_info()

Implements hook_filter_info().

File

./htmlpurifier.module, line 92
Implements HTML Purifier as a Drupal filter.

Code

function htmlpurifier_filter_info() {
  _htmlpurifier_load();
  $filters['htmlpurifier_basic'] = 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_help' => TRUE,
    ),
    'tips callback' => '_htmlpurifier_filter_tips',
  );
  $filters['htmlpurifier_advanced'] = array(
    'title' => t('HTML Purifier (advanced)'),
    'description' => $filters['htmlpurifier_basic']['description'] . t('<em>This version has advanced configuration options, do not enable both at the same time.</em>'),
  ) + $filters['htmlpurifier_basic'];
  return $filters;
}