diff options
author | M.Dent <dentm42@dm42.net> | 2018-09-23 22:36:27 -0400 |
---|---|---|
committer | M.Dent <dentm42@dm42.net> | 2018-09-23 22:36:27 -0400 |
commit | 995fc63f2caa6d735044b28caf03793f7c275eb1 (patch) | |
tree | ed3266f4cfa7953731076e2b764e869040f2d6d2 /doc/hook/system_app_installed_filter.bb | |
parent | d83fe9d417d8e7773e0f36b0605f79ab5eec07b7 (diff) | |
download | volse-hubzilla-995fc63f2caa6d735044b28caf03793f7c275eb1.tar.gz volse-hubzilla-995fc63f2caa6d735044b28caf03793f7c275eb1.tar.bz2 volse-hubzilla-995fc63f2caa6d735044b28caf03793f7c275eb1.zip |
Add filters for addon/app installed checks and docs
Diffstat (limited to 'doc/hook/system_app_installed_filter.bb')
-rw-r--r-- | doc/hook/system_app_installed_filter.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/hook/system_app_installed_filter.bb b/doc/hook/system_app_installed_filter.bb new file mode 100644 index 000000000..a269a79a8 --- /dev/null +++ b/doc/hook/system_app_installed_filter.bb @@ -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 + |