You are here

function notifications_subscription_destination_subform in Notifications 6.4

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

Add destination subform

2 calls to notifications_subscription_destination_subform()
notifications_anonymous_subscription_form in notifications_anonymous/notifications_anonymous.module
Anonymous Subscription form builder. Adds destination subform.
notifications_subscriptions_options_form in ./notifications.module
Form with multiple subscription options

File

./notifications.module, line 505
Notifications module

Code

function notifications_subscription_destination_subform($form, $account, $destination = NULL, $send_methods = NULL, $length = 40) {
  notifications_include('destination.inc');
  $form['send_method'] = notifications_destination_address_subform($account, $destination, $send_methods, $length);

  // Add our validate and submit callbacks first
  $form['#validate'] = array_merge(array(
    'notifications_subscription_destination_subform_validate',
  ), isset($form['#validate']) ? $form['#validate'] : array());
  $form['#submit'] = array_merge(array(
    'notifications_subscription_destination_subform_submit',
  ), isset($form['#submit']) ? $form['#submit'] : array());
  return $form;
}