You are here

function notifications_user_form in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.admin.inc \notifications_user_form()
  2. 6 notifications.module \notifications_user_form()
  3. 6.2 notifications.module \notifications_user_form()
  4. 6.3 notifications.module \notifications_user_form()

Generic subscriptions content form

Builds a form for a user to manage its own subscriptions with some generic parameters

Currently it only manages simple condition fields

Parameters

$account : User account

$type: Subscription type

$subscriptions: Current subscriptions of this type. If null they'll be loaded

File

./notifications.module, line 1911
Notifications module

Code

function notifications_user_form($form_state, $account, $type, $subscriptions) {
  module_load_include('pages.inc', 'notifications');
  module_load_include('manage.inc', 'notifications');

  // Needed for bulk operations
  return notifications_subscription_list_form($form_state, $type, $account, $subscriptions);
}