function notifications_ui_subscription_types in Notifications 6
Same name and namespace in other branches
- 6.4 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()
3 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
File
- notifications_ui/
notifications_ui.module, line 137 - User Interface for subscriptions modules
Code
function notifications_ui_subscription_types($type = NULL, $field = NULL) {
static $types;
if (!isset($types)) {
$types = array();
foreach (notifications_subscription_types() as $key => $info) {
if (empty($info['custom'])) {
$types[$key] = $info;
}
}
}
return notifications_info($types, $type, $field);
}