|
|
@@ -176,14 +176,18 @@ class BxBaseModGeneralModule extends BxDolModule
|
|
|
{
|
|
|
$sModule = $this->_aModule['name'];
|
|
|
|
|
|
+ $sEventPrivacy = $sModule . '_allow_view_event_to';
|
|
|
+ if(BxDolPrivacy::getObjectInstance($sEventPrivacy) === false)
|
|
|
+ $sEventPrivacy = '';
|
|
|
+
|
|
|
return array(
|
|
|
'handlers' => array(
|
|
|
- array('group' => $sModule . '_object', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'added', 'module_name' => $sModule, 'module_method' => 'get_notifications_post', 'module_class' => 'Module'),
|
|
|
+ array('group' => $sModule . '_object', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'added', 'module_name' => $sModule, 'module_method' => 'get_notifications_post', 'module_class' => 'Module', 'module_event_privacy' => $sEventPrivacy),
|
|
|
array('group' => $sModule . '_object', 'type' => 'update', 'alert_unit' => $sModule, 'alert_action' => 'edited'),
|
|
|
array('group' => $sModule . '_object', 'type' => 'delete', 'alert_unit' => $sModule, 'alert_action' => 'deleted'),
|
|
|
- array('group' => $sModule . '_comment', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'commentPost', 'module_name' => $sModule, 'module_method' => 'get_notifications_comment', 'module_class' => 'Module'),
|
|
|
+ array('group' => $sModule . '_comment', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'commentPost', 'module_name' => $sModule, 'module_method' => 'get_notifications_comment', 'module_class' => 'Module', 'module_event_privacy' => $sEventPrivacy),
|
|
|
array('group' => $sModule . '_comment', 'type' => 'delete', 'alert_unit' => $sModule, 'alert_action' => 'commentRemoved'),
|
|
|
- array('group' => $sModule . '_vote', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'doVote', 'module_name' => $sModule, 'module_method' => 'get_notifications_vote', 'module_class' => 'Module'),
|
|
|
+ array('group' => $sModule . '_vote', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'doVote', 'module_name' => $sModule, 'module_method' => 'get_notifications_vote', 'module_class' => 'Module', 'module_event_privacy' => $sEventPrivacy),
|
|
|
array('group' => $sModule . '_vote', 'type' => 'delete', 'alert_unit' => $sModule, 'alert_action' => 'undoVote'),
|
|
|
),
|
|
|
'alerts' => array(
|
|
|
@@ -217,6 +221,7 @@ class BxBaseModGeneralModule extends BxDolModule
|
|
|
'entry_url' => $sEntryUrl,
|
|
|
'entry_caption' => $sEntryCaption,
|
|
|
'entry_author' => $aContentInfo[$CNF['FIELD_AUTHOR']],
|
|
|
+ 'entry_privacy' => '', //may be empty or not specified. In this case Public privacy will be used.
|
|
|
'lang_key' => '', //may be empty or not specified. In this case the default one from Notification module will be used.
|
|
|
);
|
|
|
}
|