From: friendica Date: Sat, 31 Mar 2012 13:15:33 +0000 (-0700) Subject: register hooks for a COPA plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=adebc2793e84344fca1700eb6af583a9a0abcb1a;p=friendica.git register hooks for a COPA plugin --- diff --git a/mod/register.php b/mod/register.php index 6d0e2700bc..91080b1d8e 100755 --- a/mod/register.php +++ b/mod/register.php @@ -8,6 +8,8 @@ function register_post(&$a) { $verified = 0; $blocked = 1; + $arr = array('post' => $_POST); + call_hooks('register_post', $arr); $max_dailies = intval(get_config('system','max_daily_registrations')); if($max_dailes) { @@ -540,6 +542,11 @@ function register_content(&$a) { $license = ''; $o = get_markup_template("register.tpl"); + + $arr = array('template' => $o); + + call_hooks('register_form',$arr); + $o = replace_macros($o, array( '$oidhtml' => $oidhtml, '$invitations' => get_config('system','invitation_only'),