function notifications_content_types_callback in Notifications 6.4
Same name and namespace in other branches
- 6.2 notifications_content/notifications_content.module \notifications_content_types_callback()
- 6.3 notifications_content/notifications_content.module \notifications_content_types_callback()
Wrapper for options callback based on subscription type.
Parameters
$subs_type: Optional type of subscription for which to find allowed content types. Defaults to nodetype, can be any subscription type with event-type=node for which notifications_content handles content type settings.
1 string reference to 'notifications_content_types_callback'
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
File
- notifications_content/
notifications_content.module, line 823 - Subscriptions to content events
Code
function notifications_content_types_callback($subscription = NULL) {
if ($subscription && !notifications_subscription_types($subscription->type, 'custom')) {
return notifications_content_types($subscription->type);
}
else {
return notifications_content_type_name();
}
}