From c7d62ec9fb38eb6a35c7292a546e49d83e7eb0df Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 26 Jan 2009 12:07:16 +0000 Subject: Added object notifications plugin hook override. git-svn-id: https://code.elgg.org/elgg/trunk@2617 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engine/lib/notification.php') 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()])) { -- cgit v1.2.3