You are here

function notifications_subscriptions_options_form in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications_account/notifications_account.module \notifications_subscriptions_options_form()

Form with multiple subscription options

2 string references to 'notifications_subscriptions_options_form'
notifications_ui_block in notifications_ui/notifications_ui.module
Implementation of hook_block()
notifications_ui_forms in notifications_ui/notifications_ui.module
Implementation of hook_forms()

File

./notifications.module, line 476
Notifications module

Code

function notifications_subscriptions_options_form($form_state, $subscriptions, $account = NULL, $destination = NULL, $length = 40) {
  $account = $account ? $account : $GLOBALS['user'];
  notifications_include('object.inc');
  $form = notifications_object_options_form($form_state, $subscriptions);

  // If anonymous account, add destination subform
  if (!$account->uid) {
    $form = notifications_subscription_destination_subform($form, $account, $destination = NULL, NULL, $length);
  }
  return $form;
}