function notifications_get_subscriptions in Notifications 7
Same name and namespace in other branches
- 5 notifications.module \notifications_get_subscriptions()
- 6.4 notifications.module \notifications_get_subscriptions()
- 6 notifications.module \notifications_get_subscriptions()
- 6.2 notifications.module \notifications_get_subscriptions()
- 6.3 notifications.module \notifications_get_subscriptions()
Load multiple subscriptions.
3 calls to notifications_get_subscriptions()
- NotificationsBasicTests::testNotificationsBasicAPI in tests/
notifications_api.test - Play with creating, retrieving, deleting a pair subscriptions
- NotificationsTestCase::contentCreateSubscription in tests/
notifications_test_case.inc - Helper function to create a subscription
- notifications_save_subscription in ./
notifications.module - Update or create subscription
File
- ./
notifications.module, line 834 - Notifications module
Code
function notifications_get_subscriptions($conditions = array(), $fields = array(), $limit = FALSE) {
// all fields in {notifications_subscription} are NOT NULL, so NULL is an undefined condition.
// remove NULL from coditions, preseve 0 and FALSE.
$conditions = array_filter($conditions, 'notifications_get_subscriptions_not_null');
return Notifications_Subscription::load_multiple($conditions, $fields, $limit);
}