ソースを参照

Merge pull request #677 from Arantor/release-2.1

! New hook for post-registration notifications (once we have the user's ...
Arantor 10 年 前
コミット
d2ed86f3e4
1 ファイル変更3 行追加0 行削除
  1. 3 0
      Sources/Subs-Members.php

+ 3 - 0
Sources/Subs-Members.php

@@ -729,6 +729,9 @@ function registerMember(&$regOptions, $return_errors = false)
 	);
 	$memberID = $smcFunc['db_insert_id']('{db_prefix}members', 'id_member');
 
+	// Call an optional function as notification of registration.
+	call_integration_hook('integrate_post_register', array(&$regOptions, &$theme_vars, &$memberID));
+
 	// Update the number of members and latest member's info - and pass the name, but remove the 's.
 	if ($regOptions['register_vars']['is_activated'] == 1)
 		updateStats('member', $memberID, $regOptions['register_vars']['real_name']);