You are here

function notifications_option_subscribe_links in Notifications 7

Build subscription options as an array of links

These links can be added as node link elements or rendered some other way

Parameters

$subscription_types: Array of subscription objects, either actual subscriptions or subscription templates

$prefix: Prefix to use for the link indexes

2 calls to notifications_option_subscribe_links()
notifications_ui_link in notifications_ui/notifications_ui.module
Implementation of hook_link()
notifications_ui_user in notifications_ui/notifications_ui.module
Implementation of hook_user().
2 string references to 'notifications_option_subscribe_links'
notifications_admin_subscriptions_settings in ./notifications.admin.inc
Subscription settings
Notifications_Subscription::get_link_options in ./notifications.subscription.inc
Get default link options

File

notifications_ui/notifications_ui.module, line 206
User Interface for subscriptions modules

Code

function notifications_option_subscribe_links($type, $object) {
  if (notifications_ui_user_access()) {
    notifications_include('object.inc');
    return notifications_object_subscribe_links($type, $object);
  }
}