Add hook to allow addons to filter the list returned by app_list

This commit is contained in:
M.Dent 2018-09-16 23:01:17 -04:00
parent 07cd1d1272
commit a0cf2b53e0

View File

@ -722,6 +722,9 @@ class Apps {
); );
if($r) { 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 ++) { for($x = 0; $x < count($r); $x ++) {
if(! $r[$x]['app_system']) if(! $r[$x]['app_system'])
$r[$x]['type'] = 'personal'; $r[$x]['type'] = 'personal';