Add filters for addon/app installed checks and docs

This commit is contained in:
M.Dent
2018-09-23 22:36:27 -04:00
parent d83fe9d417
commit 995fc63f2c
5 changed files with 93 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
[h2]addon_app_installed_filter[/h2]
Allow plugins to filter the result of addon_app_installed.
Code excerpt:
[code]
$filter_arr = [
'uid'=>$uid,
'app'=>$app,
'installed'=>$r
];
call_hooks('addon_app_installed_filter',$filter_arr);
$r = $filter_arr['installed'];
[/code]
cxref: Zotlabs/Lib/Apps.php

View File

@@ -0,0 +1,17 @@
[h2]app_installed_filter[/h2]
Allow plugins to filter the result of app_installed.
Code excerpt:
[code]
$filter_arr = [
'uid'=>$uid,
'app'=>$app,
'installed'=>$r
];
call_hooks('app_installed_filter',$filter_arr);
$r = $filter_arr['installed'];
[/code]
cxref: Zotlabs/Lib/Apps.php

View File

@@ -0,0 +1,18 @@
[h2]system_app_installed_filter[/h2]
Allow plugins to filter the result of system_app_installed.
Code excerpt:
[code]
$filter_arr = [
'uid'=>$uid,
'app'=>$app,
'installed'=>$r
];
call_hooks('system_app_installed_filter',$filter_arr);
$r = $filter_arr['installed'];
[/code]
cxref: Zotlabs/Lib/Apps.php