Merge branch 'patch-20190113c' into 'dev'
Hooks to allow addons to add "extras" to privacy group settings edit page. See merge request hubzilla/core!1469
This commit is contained in:
12
doc/hook/privacygroup_extras.bb
Normal file
12
doc/hook/privacygroup_extras.bb
Normal file
@@ -0,0 +1,12 @@
|
||||
[h2]privacygroup_extras[/h2]
|
||||
|
||||
Add items to the Privacy Group edit form
|
||||
|
||||
[code]
|
||||
$hookinfo = [ 'pgrp_extras' => '', 'group'=>$argv(1) ];
|
||||
call_hooks ('privacygroup_extras',$hookinfo);
|
||||
$pgrp_extras = $hookinfo['pgrp_extras'];
|
||||
[/code]
|
||||
|
||||
see: Zotlabs/Module/Group.php
|
||||
see: view/tpl/privacy_groups.tpl
|
||||
11
doc/hook/privacygroup_extras_drop.bb
Normal file
11
doc/hook/privacygroup_extras_drop.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
[h2]privacygroup_extras_drop[/h2]
|
||||
|
||||
Called after privacy group is dropped
|
||||
|
||||
[code]
|
||||
$hookinfo = [ 'pgrp_extras' => '', 'group'=>$argv(2) ];
|
||||
call_hooks ('privacygroup_extras_drop',$hookinfo);
|
||||
[/code]
|
||||
|
||||
see: Zotlabs/Module/Group.php
|
||||
see: view/tpl/privacy_groups.tpl
|
||||
11
doc/hook/privacygroup_extras_post.bb
Normal file
11
doc/hook/privacygroup_extras_post.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
[h2]privacygroup_extras_post[/h2]
|
||||
|
||||
Called as privacy group edit form is edited.
|
||||
|
||||
[code]
|
||||
$hookinfo = [ 'pgrp_extras' => '', 'group'=>$group['id'] ];
|
||||
call_hooks ('privacygroup_extras_post',$hookinfo);
|
||||
[/code]
|
||||
|
||||
see: Zotlabs/Module/Group.php
|
||||
see: view/tpl/privacy_groups.tpl
|
||||
Reference in New Issue
Block a user