public static function Notifications_Subscription::load in Notifications 7
Same name and namespace in other branches
- 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::load()
Load from db
Parameters
$sid: Subscription id
$full: Whether to load all fields in the same operation
2 calls to Notifications_Subscription::load()
- Notifications_Subscription::load_single in ./
notifications.subscription.inc - Load single subscription from db
- notifications_subscription_load in ./
notifications.module - Menu loading, subscription
File
- ./
notifications.subscription.inc, line 125 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
public static function load($sid) {
$sids = !empty($sid) ? array(
$sid,
) : array();
$subscriptions = entity_load('notifications_subscription', $sids);
return reset($subscriptions);
}