HTMLPurifier_HTMLModuleManager::registerModule
Registers a module to the recognized module list, useful for overloading pre-existing modules.
Signature
public function registerModule(Mixed:
$module,
[boolean
$overload = false] )
Parameters
$module
—
object
- string module name, with or without
HTMLPurifier_HTMLModule prefix, or instance of
subclass of HTMLPurifier_HTMLModule.
$overload
—
boolean
- whether or not to overload previous modules.
If this is not set, and you do overload a module,
HTML Purifier will complain with a warning.