You are here

function notifications_subscription_destination_subform in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications.module \notifications_subscription_destination_subform()

Add destination subform

1 call to notifications_subscription_destination_subform()
notifications_subscriptions_options_form in notifications_account/notifications_account.module
Form with multiple subscription options

File

notifications_account/notifications_account.module, line 222
Notifications module - User subscriptions tabs

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;
}