aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-09-17 10:55:47 +0200
committerMario <mario@mariovavti.com>2018-09-17 10:55:47 +0200
commit3019d8341d67c4fdbdc77e8a77db357e48f3e27d (patch)
treea281d54b1474b5d794b6f1db9b3116d1d12ad3c7
parentdcacfc1124457c9d86bf0fa876829abb4701fbff (diff)
parenta0cf2b53e03098f459edec6ac395df9750efe333 (diff)
downloadvolse-hubzilla-3019d8341d67c4fdbdc77e8a77db357e48f3e27d.tar.gz
volse-hubzilla-3019d8341d67c4fdbdc77e8a77db357e48f3e27d.tar.bz2
volse-hubzilla-3019d8341d67c4fdbdc77e8a77db357e48f3e27d.zip
Merge branch 'app-list-hook' into 'dev'
Add hook to allow addons to filter the list returned by app_list See merge request hubzilla/core!1276
-rw-r--r--Zotlabs/Lib/Apps.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 6b87ac6cb..aa7e2282d 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -722,6 +722,9 @@ class Apps {
);
if($r) {
+ $hookinfo = Array('uid'=>$uid,'deleted'=>$deleted,'cats'=>$cats,'apps'=>$r);
+ call_hooks('app_list',$hookinfo);
+ $r = $hookinfo['apps'];
for($x = 0; $x < count($r); $x ++) {
if(! $r[$x]['app_system'])
$r[$x]['type'] = 'personal';