Просмотр исходного кода

#1712 Connect module: additional alerts

Alex Trofimov 8 лет назад
Родитель
Сommit
0d60abe8a9
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      modules/base/connect/classes/BxBaseModConnectModule.php

+ 5 - 0
modules/base/connect/classes/BxBaseModConnectModule.php

@@ -73,6 +73,8 @@ class BxBaseModConnectModule extends BxBaseModGeneralModule
     {
         $mixed = $this->_createProfileRaw($aProfileInfo, $sAlternativeName);
 
+        bx_alert($this->getName(), 'profile_created', 0, 0, array('override_result' => &$mixed, 'remote_profile_info' => $aProfileInfo));
+        
         // display error
         if (is_string($mixed)) {
             $this->_oTemplate->getPage(_t($this->_oConfig->sDefaultTitleLangKey), DesignBoxContent(_t($this->_oConfig->sDefaultTitleLangKey), MsgBox($mixed)));
@@ -123,6 +125,9 @@ class BxBaseModConnectModule extends BxBaseModGeneralModule
 
         // convert fields to unique format
         $aFieldsProfile = $aFieldsAccount = $this->_convertRemoteFields($aProfileInfo, $sAlternativeName);
+
+        bx_alert($this->getName(), 'fields_converted', 0, 0, array('override_profile_fields' => &$aFieldsProfile, 'override_account_fields' => &$aFieldsAccount, 'remote_profile_info' => $aProfileInfo));
+
         if (empty($aFieldsProfile['email']))
             return _t('_Incorrect Email');