You are here

function notifications_object_options_form in Notifications 6.4

Form for object (node, user, term...) subscriptions

Parameters

$subscriptions: Array of subscription options

1 call to notifications_object_options_form()
notifications_subscriptions_options_form in ./notifications.module
Form with multiple subscription options

File

includes/object.inc, line 448
Notifications object and fields

Code

function notifications_object_options_form($form_state, $subscriptions) {
  $form['subscriptions'] = notifications_object_options_fieldset($subscriptions, FALSE);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Update'),
  );

  // If full form, redirect so the full page which may have subscription links is updated
  $form['#redirect'] = $_GET['q'];

  // Add always submit callback because the form may have a different name
  $form['#submit'][] = 'notifications_subscriptions_options_form_submit';
  return $form;
}