You are here

notifications_ui.pages.inc in Notifications 7

User pages for User Interface for subscriptions modules

File

notifications_ui/notifications_ui.pages.inc
View source
<?php

/**
 * @file
 *   User pages for User Interface for subscriptions modules
 */

/**
 * Page callback: Add subscription form
 */
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);
}

Functions

Namesort descending Description
notifications_ui_page_add_subscription Page callback: Add subscription form