Add pgrp_extras hook & display
This commit is contained in:
parent
9e42dfd094
commit
dba9c2fbb0
@ -127,6 +127,10 @@ class Group extends Controller {
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$hookinfo = [ 'pgrp_extras' => '', 'group'=>$argv(1) ];
|
||||||
|
call_hooks ('privacygroup_extras',$hookinfo);
|
||||||
|
$pgrp_extras = $hookinfo['pgrp_extras'];
|
||||||
|
|
||||||
$tpl = get_markup_template('privacy_groups.tpl');
|
$tpl = get_markup_template('privacy_groups.tpl');
|
||||||
$o = replace_macros($tpl, [
|
$o = replace_macros($tpl, [
|
||||||
'$title' => t('Privacy Groups'),
|
'$title' => t('Privacy Groups'),
|
||||||
@ -136,6 +140,7 @@ class Group extends Controller {
|
|||||||
// new group form
|
// new group form
|
||||||
'$gname' => array('groupname',t('Privacy group name')),
|
'$gname' => array('groupname',t('Privacy group name')),
|
||||||
'$public' => array('public',t('Members are visible to other channels'), false),
|
'$public' => array('public',t('Members are visible to other channels'), false),
|
||||||
|
'$pgrp_extras' => $pgrp_extras,
|
||||||
'$form_security_token' => get_form_security_token("group_edit"),
|
'$form_security_token' => get_form_security_token("group_edit"),
|
||||||
'$submit' => t('Submit'),
|
'$submit' => t('Submit'),
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||||
{{include file="field_input.tpl" field=$gname}}
|
{{include file="field_input.tpl" field=$gname}}
|
||||||
{{include file="field_checkbox.tpl" field=$public}}
|
{{include file="field_checkbox.tpl" field=$public}}
|
||||||
|
{{$pgrp_extras}}
|
||||||
<button type="submit" name="submit" class="btn btn-sm btn-primary float-right">{{$submit}}</button>
|
<button type="submit" name="submit" class="btn btn-sm btn-primary float-right">{{$submit}}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user