diff options
author | M.Dent <dentm42@dm42.net> | 2018-09-16 23:01:17 -0400 |
---|---|---|
committer | M.Dent <dentm42@dm42.net> | 2018-09-16 23:01:17 -0400 |
commit | a0cf2b53e03098f459edec6ac395df9750efe333 (patch) | |
tree | ab4190317195f6c46171740c665751f6024fbf31 /Zotlabs | |
parent | 07cd1d1272bd301c2f41f5579697754ccbbf5ae3 (diff) | |
download | volse-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
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 3 |
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'; |