function notifications_user_notifications_subscription in Notifications 7
Implementation of hook notifications_subscription()
File
- notifications_user/
notifications_user.module, line 95 - Notifications module - User subscriptions tabs
Code
function notifications_user_notifications_subscription($op, $subscription = NULL) {
switch ($op) {
case 'page objects':
$objects = array();
// Return objects on current page to which we can subscribe
if (arg(0) == 'user' && is_numeric(arg(1)) && ($user = menu_get_object('user'))) {
$objects[] = notifications_object('user', $user);
}
return $objects;
}
}