Ver Fonte

Merge pull request #554 from MissAllSunday/integrate_register_after

// If they are for sure registered, let other people to know about it
Michael Eshom há 10 anos atrás
pai
commit
3753f8261b
2 ficheiros alterados com 6 adições e 0 exclusões
  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!)
 	// Okay, they're for sure registered... make sure the session is aware of this for security. (Just married :P!)
 	$_SESSION['just_registered'] = 1;
 	$_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;
 	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.)
 	// Insert a new topic (if the topicID was left empty.)
 	if ($new_topic)
 	if ($new_topic)
 	{
 	{