diff options
author | Mario <mario@mariovavti.com> | 2018-09-17 10:55:47 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-09-17 10:55:47 +0200 |
commit | 3019d8341d67c4fdbdc77e8a77db357e48f3e27d (patch) | |
tree | a281d54b1474b5d794b6f1db9b3116d1d12ad3c7 | |
parent | dcacfc1124457c9d86bf0fa876829abb4701fbff (diff) | |
parent | a0cf2b53e03098f459edec6ac395df9750efe333 (diff) | |
download | volse-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.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'; |