You are here

function notifications_ui_page_add_subscription in Notifications 7

Page callback: Add subscription form

1 string reference to 'notifications_ui_page_add_subscription'
notifications_ui_menu in notifications_ui/notifications_ui.module
Implementation of hook_menu()

File

notifications_ui/notifications_ui.pages.inc, line 10
User pages for User Interface for subscriptions modules

Code

function notifications_ui_page_add_subscription($type = NULL) {
  $account = $GLOBALS['user'];
  $subscription = notifications_subscription($type)
    ->instance()
    ->set_user($account);
  return drupal_get_form('notifications_subscription_form', 'subscribe', $subscription);
}