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
This commit is contained in:
Mario 2018-09-17 10:55:47 +02:00
commit 3019d8341d

View File

@ -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';