You are here

function notifications_object_load in Notifications 6.4

Load an object of type defined by notifications 'object types'

Parameters

$type: Object type

$value: Object key value, or the object itself

7 calls to notifications_object_load()
Notifications_Event::load_objects in includes/notifications_event.class.inc
Load event objects
notifications_object_access in includes/object.inc
Check access to an object for user account
notifications_object_condition_fields in includes/object.inc
Get field conditions for this specific object
notifications_object_subscribe_options in includes/object.inc
Get subscription options for object, account. Only enabled subscription types
notifications_object_user_subscriptions in includes/object.inc
Get list of possible and existing subscriptions for user/object

... See full list

File

./notifications.module, line 980
Notifications module

Code

function notifications_object_load($type, $value) {
  if (is_object($value)) {
    return $value;
  }
  else {
    return _notifications_object_callback($type, 'load callback', $value);
  }
}