aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-12 15:43:08 -0800
committerredmatrix <git@macgirvin.com>2016-01-12 15:43:08 -0800
commitbaedd253090e1129dfea8284ee6dc29649286b3b (patch)
treeea24903d359fe8f7c7730fcc874d2764f84d45e8 /index.php
parentbbc1a1f1fb925fc804585118364297acb5c8fa1f (diff)
downloadvolse-hubzilla-baedd253090e1129dfea8284ee6dc29649286b3b.tar.gz
volse-hubzilla-baedd253090e1129dfea8284ee6dc29649286b3b.tar.bz2
volse-hubzilla-baedd253090e1129dfea8284ee6dc29649286b3b.zip
'auto channel creation' - if the corresponding config variable is set, create a channel when an account is created.
Plugins can provide the necessary channel details (probably from an extended registration form). If no details are provided, a social (mostly public) channel will be created using the LHS of the email address and you will be directed to your channel page (unless email verification is required, in which case this step will be delayed until successful validation and login). If the reddress is already assigned a random name(1000-9999) reddress will be assigned.
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.php b/index.php
index 6ed7eeb11..c864a7b37 100755
--- a/index.php
+++ b/index.php
@@ -336,11 +336,13 @@ if($a->module_loaded) {
}
if((! $a->error) && (function_exists($a->module . '_content'))) {
- $arr = array('content' => $a->page['content']);
+ $arr = array('content' => $a->page['content'], 'replace' => false);
call_hooks($a->module . '_mod_content', $arr);
$a->page['content'] = $arr['content'];
- $func = $a->module . '_content';
- $arr = array('content' => $func($a));
+ if(! $arr['replace']) {
+ $func = $a->module . '_content';
+ $arr = array('content' => $func($a));
+ }
call_hooks($a->module . '_mod_aftercontent', $arr);
$a->page['content'] .= $arr['content'];
}