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:
commit
3019d8341d
@ -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';
|
||||||
|
Reference in New Issue
Block a user