aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-11 13:46:06 -0700
committerredmatrix <git@macgirvin.com>2016-07-11 13:46:06 -0700
commit833de9180eeb8b2d6cf0e0e90a656419f6172ab4 (patch)
treebd384c893e7a3b281e7d6afdf511b18244fd4dfe /include/security.php
parentfb36561a6841c165dc8644a61c4c37a771461e2b (diff)
downloadvolse-hubzilla-833de9180eeb8b2d6cf0e0e90a656419f6172ab4.tar.gz
volse-hubzilla-833de9180eeb8b2d6cf0e0e90a656419f6172ab4.tar.bz2
volse-hubzilla-833de9180eeb8b2d6cf0e0e90a656419f6172ab4.zip
create change_channel hook
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php
index 38045c8a9..6c245fa09 100644
--- a/include/security.php
+++ b/include/security.php
@@ -132,6 +132,10 @@ function change_channel($change_channel) {
}
if(! is_dir('store/' . $r[0]['channel_address']))
@os_mkdir('store/' . $r[0]['channel_address'], STORAGE_DEFAULT_PERMISSIONS,true);
+
+ $arr = [ 'channel_id' => $change_channel, 'chanx' => $ret ];
+ call_hooks('change_channel', $arr);
+
}
return $ret;