function notifications_content_types in Notifications 6.4
Same name and namespace in other branches
- 5 notifications_content/notifications_content.module \notifications_content_types()
- 6 notifications_content/notifications_content.module \notifications_content_types()
- 6.2 notifications_content/notifications_content.module \notifications_content_types()
- 6.3 notifications_content/notifications_content.module \notifications_content_types()
- 7 notifications_content/notifications_content.module \notifications_content_types()
Get content types available for subscriptions to content type
Parameters
$subs_type: Optional type of subscription for which to find allowed content types. If none, return all content types for which any subscription type is enabled.
3 calls to notifications_content_types()
- NotificationsContentTests::testNotificationsContent in tests/
notifications_content.test - Play with creating, retrieving, deleting a pair subscriptions
- notifications_content_notifications_object_user in notifications_content/
notifications_content.module - Implementation of hook_notifications_object_user()
- notifications_content_types_callback in notifications_content/
notifications_content.module - Wrapper for options callback based on subscription type.
2 string references to 'notifications_content_types'
- notifications_content_uninstall in notifications_content/
notifications_content.install - Implementation of hook_uninstall().
- notifications_update_5 in ./
notifications.install - Update content type and taxonomy options
File
- notifications_content/
notifications_content.module, line 839 - Subscriptions to content events
Code
function notifications_content_types($subs_type = NULL) {
// Get list of available node types, all of them will be allowed by default
$types = array();
foreach (notifications_content_type_name() as $key => $name) {
if (notifications_content_type_enabled($key, $subs_type)) {
$types[$key] = $name;
}
}
return $types;
}