瀏覽代碼

Merge pull request #554 from MissAllSunday/integrate_register_after

// If they are for sure registered, let other people to know about it
Michael Eshom 11 年之前
父節點
當前提交
3753f8261b
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      Sources/Subs-Members.php
  2. 3 0
      Sources/Subs-Post.php

+ 3 - 0
Sources/Subs-Members.php

@@ -845,6 +845,9 @@ function registerMember(&$regOptions, $return_errors = false)
 	// Okay, they're for sure registered... make sure the session is aware of this for security. (Just married :P!)
 	$_SESSION['just_registered'] = 1;
 
+	// If they are for sure registered, let other people to know about it
+	call_integration_hook('integrate_register_after', array($regOptions, $memberID));
+
 	return $memberID;
 }
 

+ 3 - 0
Sources/Subs-Post.php

@@ -1868,6 +1868,9 @@ function createPost(&$msgOptions, &$topicOptions, &$posterOptions)
 			)
 		);
 
+	// What if we want to export new posts out to a CMS?
+	call_integration_hook('integrate_after_create_post', array($msgOptions, $topicOptions, $posterOptions, $message_columns, $message_parameters));
+
 	// Insert a new topic (if the topicID was left empty.)
 	if ($new_topic)
 	{