Define this procedure to offer form input fields for new user registration. The return result of this method should be HTML that will be inserted inside the <form> element of the registration form.
"; } public function processregister($user_login='',$user_email='',$user_pass='',$minpasswordlength,$captchaok) { _e('ERROR: Define this procedure to handle unique user id checking, user creation, and user email notifications. This procedure returns an associated array with two elements, (1) user_id and (2) errors. This procedure will completely replace the registration process defined by default in the login_registration plugin'); $errors['sample'] = 'sample error'; if ( empty($user_login) ) $errors['user_login'] = __('ERROR: user_login is missing.'); if ( empty($user_email) ) $errors['user_email'] = __('ERROR: user_email is missing.'); if ( empty($user_pass) ) $errors['user_pass'] = __('ERROR: user_pass is missing.'); if ( ! $captchaok ) $errors['captcha'] = __('ERROR: captcha error.'); $user_id = 0; # new user id will be returned here upon successfull account creation. return(array('user_id'=>$user_id,'errors'=>$errors)); } } } # vim: syntax=php ?>