aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-09-16 23:01:17 -0400
committerM.Dent <dentm42@dm42.net>2018-09-16 23:01:17 -0400
commita0cf2b53e03098f459edec6ac395df9750efe333 (patch)
treeab4190317195f6c46171740c665751f6024fbf31
parent07cd1d1272bd301c2f41f5579697754ccbbf5ae3 (diff)
downloadvolse-hubzilla-a0cf2b53e03098f459edec6ac395df9750efe333.tar.gz
volse-hubzilla-a0cf2b53e03098f459edec6ac395df9750efe333.tar.bz2
volse-hubzilla-a0cf2b53e03098f459edec6ac395df9750efe333.zip
Add hook to allow addons to filter the list returned by app_list
-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';