]> git.mxchange.org Git - friendica.git/commitdiff
register hooks for a COPA plugin
authorfriendica <info@friendica.com>
Sat, 31 Mar 2012 13:15:33 +0000 (06:15 -0700)
committerfriendica <info@friendica.com>
Sat, 31 Mar 2012 13:15:33 +0000 (06:15 -0700)
mod/register.php

index 6d0e2700bceac58c61dab0b39658f51343782763..91080b1d8ea18b9c36074511f52d709a48c3d8fe 100755 (executable)
@@ -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'),