Browse Source

Merge pull request #577 from MissAllSunday/integrate_register_check

integrate_register_check hook for extra registration hooking goodness.
Arantor 11 năm trước cách đây
mục cha
commit
0fac0ddae3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Sources/Subs-Members.php

+ 3 - 0
Sources/Subs-Members.php

@@ -541,6 +541,9 @@ function registerMember(&$regOptions, $return_errors = false)
 		$reg_errors[] = array('lang', 'email_in_use', false, array(htmlspecialchars($regOptions['email'])));
 		$reg_errors[] = array('lang', 'email_in_use', false, array(htmlspecialchars($regOptions['email'])));
 	$smcFunc['db_free_result']($request);
 	$smcFunc['db_free_result']($request);
 
 
+	// Perhaps someone else wants to check this user
+	call_integration_hook('integrate_register_check', array(&$regOptions, &$reg_errors));
+
 	// If we found any errors we need to do something about it right away!
 	// If we found any errors we need to do something about it right away!
 	foreach ($reg_errors as $key => $error)
 	foreach ($reg_errors as $key => $error)
 	{
 	{