}
// "Unregisters" a filter from the given chain
-function UNREGISTER_FILTER ($filterName, $filterFunction, $force = false) {
+function UNREGISTER_FILTER ($filterName, $filterFunction, $force = false, $remove = true) {
global $filters;
// Extend the filter function name
return false;
} // END - if
- // Mark for filter removal
- $filters[$filterName][$filterFunction] = "R";
+ // Shall we remove? (default, not while just showing an extension removal)
+ if ($remove) {
+ // Mark for filter removal
+ $filters[$filterName][$filterFunction] = "R";
+ } // END - if
}
// "Runs" the given filters, data is optional and can be any type of data
if (!isset($filters[$filterName])) {
// Then abort here (quick'N'dirty hack)
if ((!$silentAbort) && (defined('FILTER_FAILED_NO_FILTER_FOUND'))) {
+ // Add fatal message
ADD_FATAL(sprintf(FILTER_FAILED_NO_FILTER_FOUND, $filterName));
} // END - if