function notifications_ui_allowed_types in Notifications 6.3
Same name and namespace in other branches
- 5 notifications_ui/notifications_ui.module \notifications_ui_allowed_types()
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_allowed_types()
- 6 notifications_ui/notifications_ui.module \notifications_ui_allowed_types()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_allowed_types()
Get list of allowed subscriptions types
Checks permissions and settings
Return value
Subscription types allowed for this user
1 call to notifications_ui_allowed_types()
- notifications_ui_subscribe_options in notifications_ui/
notifications_ui.module - Get list of possible and existing subscriptions for user/object
File
- notifications_ui/
notifications_ui.module, line 419 - User Interface for subscriptions modules
Code
function notifications_ui_allowed_types() {
$allowed = array();
foreach (notifications_subscription_types() as $type => $info) {
if (notifications_ui_subscription_type($type) && !empty($info['access']) && user_access($info['access'])) {
$allowed[$type] = $info;
}
}
return $allowed;
}