You are here

function notifications_form_confirm_submit in Notifications 5

Process form submission

File

./notifications.admin.inc, line 502

Code

function notifications_form_confirm_submit($form_id, $form_values) {
  $subscription = (object) $form_values;
  switch ($form_values['op']) {
    case t('Subscribe'):
      notifications_save_subscription($subscription);
      drupal_set_message(t('Your subscription was activated.'));
      break;
    case t('Cancel'):
      drupal_set_message(t('Your subscription was cancelled'));
      break;
  }
  return 'user/' . $form_values['uid'] . '/notifications';
}