aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-06-23 12:50:00 +0200
committerMichael Vogel <icarus@dabo.de>2012-06-23 12:50:00 +0200
commita81af2e042ae133bec3097488feeaa1318dc798b (patch)
tree25d2103fb3ce9edf45c0f7d1142b5cd3f63f8591 /index.php
parent7a4ad4564dc4fa49aa860a10949ffe8958305f3a (diff)
parentbf47bf5ba015a844919362a56903eb82c064bee9 (diff)
downloadvolse-hubzilla-a81af2e042ae133bec3097488feeaa1318dc798b.tar.gz
volse-hubzilla-a81af2e042ae133bec3097488feeaa1318dc798b.tar.bz2
volse-hubzilla-a81af2e042ae133bec3097488feeaa1318dc798b.zip
Merge remote branch 'upstream/master'
Conflicts: include/bb2diaspora.php
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/index.php b/index.php
index 6967d0f31..61f3562b5 100644
--- a/index.php
+++ b/index.php
@@ -246,7 +246,10 @@ if(! $install)
if($a->module_loaded) {
$a->page['page_title'] = $a->module;
+ $placeholder = '';
+
if(function_exists($a->module . '_init')) {
+ call_hooks($a->module . '_mod_init', $placeholder);
$func = $a->module . '_init';
$func($a);
}
@@ -266,18 +269,25 @@ if($a->module_loaded) {
if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error)
&& (function_exists($a->module . '_post'))
&& (! x($_POST,'auth-params'))) {
+ call_hooks($a->module . '_mod_post', $_POST);
$func = $a->module . '_post';
$func($a);
}
if((! $a->error) && (function_exists($a->module . '_afterpost'))) {
+ call_hooks($a->module . '_mod_afterpost',$placeholder);
$func = $a->module . '_afterpost';
$func($a);
}
if((! $a->error) && (function_exists($a->module . '_content'))) {
+ $arr = array('content' => $a->page['content']);
+ call_hooks($a->module . '_mod_content', $arr);
+ $a->page['content'] = $arr['content'];
$func = $a->module . '_content';
- $a->page['content'] .= $func($a);
+ $arr = array('content' => $func($a));
+ call_hooks($a->module . '_mod_aftercontent', $arr);
+ $a->page['content'] .= $arr['content'];
}
}