function notifications_ui_subscription_types in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_ui/notifications_ui.module \notifications_ui_subscription_types()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_subscription_types()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_subscription_types()
Get info about subscription types, exclude custom types
See also
notifications_subscription_types()
4 calls to notifications_ui_subscription_types()
- notifications_ui_access_user_add in notifications_ui/
notifications_ui.module - Menu access callback: add subscription
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
- notifications_ui_page_user_add in notifications_ui/
notifications_ui.pages.inc - User add subscription
- notifications_ui_settings_form in notifications_ui/
notifications_ui.admin.inc - Site-wide settings form.
File
- notifications_ui/
notifications_ui.module, line 132 - User Interface for subscriptions modules
Code
function notifications_ui_subscription_types($type = NULL, $field = NULL) {
static $types;
if (!isset($types)) {
$types = notifications_subscription_types();
// Filter out disabled types
$types = array_intersect_key($types, notifications_subscription_type_enabled());
// Filter out custom subscriptions
$types = notifications_array_filter($types, array(
'custom' => TRUE,
), TRUE);
}
return notifications_array_info($types, $type, $field);
}