register hooks for a COPA plugin
This commit is contained in:
parent
c34a71eba6
commit
adebc2793e
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,8 @@ function register_post(&$a) {
|
||||||
$verified = 0;
|
$verified = 0;
|
||||||
$blocked = 1;
|
$blocked = 1;
|
||||||
|
|
||||||
|
$arr = array('post' => $_POST);
|
||||||
|
call_hooks('register_post', $arr);
|
||||||
|
|
||||||
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
$max_dailies = intval(get_config('system','max_daily_registrations'));
|
||||||
if($max_dailes) {
|
if($max_dailes) {
|
||||||
|
@ -540,6 +542,11 @@ function register_content(&$a) {
|
||||||
$license = '';
|
$license = '';
|
||||||
|
|
||||||
$o = get_markup_template("register.tpl");
|
$o = get_markup_template("register.tpl");
|
||||||
|
|
||||||
|
$arr = array('template' => $o);
|
||||||
|
|
||||||
|
call_hooks('register_form',$arr);
|
||||||
|
|
||||||
$o = replace_macros($o, array(
|
$o = replace_macros($o, array(
|
||||||
'$oidhtml' => $oidhtml,
|
'$oidhtml' => $oidhtml,
|
||||||
'$invitations' => get_config('system','invitation_only'),
|
'$invitations' => get_config('system','invitation_only'),
|
||||||
|
|
Loading…
Reference in a new issue