summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 65f994db2..58acf513e 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -462,7 +462,14 @@ function check_input($text) {
}
function filter($text) {
- return module_invoke_all("filter", $text);;
+
+ foreach (module_list() as $name) {
+ if (module_hook($name, "filter")) {
+ $text = module_invoke($name, "filter", $text);
+ }
+ }
+
+ return $text;
}
function rewrite_old_urls($text) {