Sfoglia il codice sorgente

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 anni fa
parent
commit
3753f8261b
2 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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)
 	{