public static function Notifications_Event::load in Notifications 6.4
Same name and namespace in other branches
- 7 notifications.event.inc \Notifications_Event::load()
Load by id passing through notifications_event() hook
Replaces notifications_event_load($id)
Overrides Messaging_Object::load
1 call to Notifications_Event::load()
File
- includes/
notifications_event.class.inc, line 358 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Message destination class
Code
public static function load($id) {
$cached = self::cache_get($id);
if (isset($cached)) {
return $cached;
}
elseif ($event = self::object_load(self::DB_TABLE, self::DB_KEY, $id, 'Notifications_Event')) {
// Inform other modules, give them the chance to alter
module_invoke_all('notifications_event', 'load', $event);
return $event;
}
}