function notifications_access_user_add in Notifications 7
Same name and namespace in other branches
- 6.4 notifications.module \notifications_access_user_add()
- 6 notifications.module \notifications_access_user_add()
- 6.2 notifications.module \notifications_access_user_add()
- 6.3 notifications.module \notifications_access_user_add()
Menu access callback, add a given subscription type
1 call to notifications_access_user_add()
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
File
- ./
notifications.module, line 329 - Notifications module
Code
function notifications_access_user_add($account = NULL, $type = NULL) {
global $user;
$account = $account ? $account : $user;
if (notifications_access_user($account)) {
if ($type) {
return notifications_subscription($type)
->user_access($account);
}
else {
return TRUE;
}
}
}