Преглед изворни кода

#4103 - Improvements (Alert 'before_register_alert' for timeline)

roman.lesnikov@gmail.com пре 4 година
родитељ
комит
9e90bad4b2

+ 4 - 1
modules/boonex/channels/classes/BxCnlModule.php

@@ -85,7 +85,10 @@ class BxCnlModule extends BxBaseModGroupsModule
         bx_alert($this->_aModule['name'], 'hashtag_added', $iId, $iCnlProfileId, array(
             'object_author_id' => $iAuthorId, 
             'privacy_view' => -$iCnlProfileId,
-
+            'subobject_id' => $iId,
+			'content_module' => $sModuleName,
+            'content_id' => $iContentId,
+            'content_author_id' => $iAuthorId,
             'timeline_group' => array(
                 'by' => $sModuleName . '_' . $iAuthorId . '_' . $iContentId,
                 'field' => 'owner_id'

+ 6 - 0
modules/boonex/timeline/classes/BxTimelineResponse.php

@@ -25,6 +25,12 @@ class BxTimelineResponse extends BxBaseModNotificationsResponse
      */
     public function response($oAlert)
     {
+        bx_alert($this->_oModule->getName(), 'before_register_alert', 0, 0, array(
+            'unit' => $oAlert->sUnit,
+            'action' => $oAlert->sAction,
+            'alert' => &$oAlert,
+        ));
+        
         $CNF = &$this->_oModule->_oConfig->CNF;
 
         $sMethod = '_process' . bx_gen_method_name($oAlert->sUnit . '_' . $oAlert->sAction);