function notifications_ui_page_options in Notifications 6.4
Get subscription options for current page/user and a display type
Parameters
$display: Display type: 'links', 'form', 'block', etc...
1 call to notifications_ui_page_options()
- notifications_ui_block in notifications_ui/
notifications_ui.module - Implementation of hook_block()
File
- notifications_ui/
notifications_ui.module, line 348 - User Interface for subscriptions modules
Code
function notifications_ui_page_options($display) {
notifications_include('object.inc');
$objects = array();
foreach (notifications_object_page_objects() as $type => $object) {
if (notifications_ui_display_options($type, $display, $object)) {
$objects[$type] = $object;
}
}
if ($objects && ($subscriptions = notifications_object_page_subscriptions($objects))) {
// Filter out not displayable subscription types
foreach ($subscriptions as $index => $subscription) {
if (!notifications_ui_type_enabled($subscription->type)) {
unset($subscriptions[$index]);
}
}
return $subscriptions;
}
}