Pārlūkot izejas kodu

Merge pull request #554 from MissAllSunday/integrate_register_after

// If they are for sure registered, let other people to know about it
Michael Eshom 10 gadi atpakaļ
vecāks
revīzija
3753f8261b
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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)
 	{