aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-26 12:07:16 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-26 12:07:16 +0000
commitc7d62ec9fb38eb6a35c7292a546e49d83e7eb0df (patch)
tree90f4983687f0840f66e4796bbba8b82cded929ce
parentb362b74a92512c3986927c25c0be1c4341702829 (diff)
downloadelgg-c7d62ec9fb38eb6a35c7292a546e49d83e7eb0df.tar.gz
elgg-c7d62ec9fb38eb6a35c7292a546e49d83e7eb0df.tar.bz2
Added object notifications plugin hook override.
git-svn-id: https://code.elgg.org/elgg/trunk@2617 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/notification.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 23db54e1d..dac0f6b8c 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -364,6 +364,12 @@
// Get config data
global $CONFIG;
+ if (trigger_plugin_hook('object:notifications',$object_type,array(
+ 'event' => $event,
+ 'object_type' => $object_type,
+ 'object' => $object,
+ ),true)) return true;
+
// Have we registered notifications for this type of entity?
if (isset($CONFIG->register_objects[$object->getType()][$object->getSubtype()])) {