You are here

function notifications_destination_manage_form in Notifications 6.4

Destination manage subscriptions form

1 string reference to 'notifications_destination_manage_form'
notifications_anonymous_destination_page in notifications_anonymous/notifications_anonymous.pages.inc
Page callback. Manage anonymous destinations.

File

includes/destination.inc, line 283
Destination management

Code

function notifications_destination_manage_form($form_state, $destination, $options = array()) {
  module_load_include('inc', 'notifications', 'notifications.pages');
  $account = $destination
    ->get_account();
  if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') {
    $form = notifications_multiple_delete_confirm($form_state, array_filter($form_state['values']['subscriptions']));
    return $form;
  }
  $form['description'] = notifications_destination_subform($destination, $options);
  $form['admin'] = notifications_destination_manage_subform($destination);
  $form['admin'] += notifications_destination_manage_subscriptions_form_options($account);

  //$form['options'] = array('#type' => 'fieldset', '#title' => t('Options'));
  return $form;
}