You are here

function htmlpurifier_config_N in HTML Purifier 7.2

Same name and namespace in other branches
  1. 6.2 config/sample.php \htmlpurifier_config_N()
  2. 6 config/sample.php \htmlpurifier_config_N()
  3. 7 config/sample.php \htmlpurifier_config_N()

Accepts an HTMLPurifier_Config configuration object and configures it.

@note No return value is needed, as PHP objects are passed by reference.

Parameters

$config: Instance of HTMLPurifier_Config to modify. See http://htmlpurifier.org/doxygen/html/classHTMLPurifier__Config.html for a full API.

File

config/sample.php, line 40
This file is a sample advanced PHP configuration file for the HTML Purifier filter module. In reality, this file would be named N.php, where N is the integer identifying the filter this is configuring. The configure page for HTML Purifier (advanced)…

Code

function htmlpurifier_config_N($config) {

  // Set your configuration here:
  $config
    ->set('Core', 'Lexer', 'DirectLex');

  // $config->set('Namespace', 'Directive', $value);
  // Advanced users:
  // $def = $config->getDefinition('HTML');
  // For more information about this, see:
  //    http://htmlpurifier.org/docs/enduser-customize.html
}