You are here

function uc_recurring_user_cancel_form_submit in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 6 uc_recurring.pages.inc \uc_recurring_user_cancel_form_submit()
  2. 7.2 uc_recurring.pages.inc \uc_recurring_user_cancel_form_submit()

Implements hook_submit() for the cancel recurring fee form

File

./uc_recurring.pages.inc, line 29
Recurring payments menu items.

Code

function uc_recurring_user_cancel_form_submit($form, &$form_state) {
  uc_recurring_fee_cancel($form_state['values']['rfid']);
  drupal_set_message(t('The recurring fee has been cancelled.'));
  $fee = uc_recurring_fee_user_load($form_state['values']['rfid']);
  $form_state['redirect'] = 'user/' . $fee->uid;
}