Add filters for addon/app installed checks and docs
This commit is contained in:
18
doc/hook/addon_app_installed_filter.bb
Normal file
18
doc/hook/addon_app_installed_filter.bb
Normal 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
|
||||
|
17
doc/hook/app_installed_filter.bb
Normal file
17
doc/hook/app_installed_filter.bb
Normal 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
|
18
doc/hook/system_app_installed_filter.bb
Normal file
18
doc/hook/system_app_installed_filter.bb
Normal 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
|
||||
|
Reference in New Issue
Block a user