You are here

function uc_recurring_user_cancel_form_submit in UC Recurring Payments and Subscriptions 6

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

File

./uc_recurring.pages.inc, line 24
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.'));
  $form_state['redirect'] = 'user/' . $form_state['values']['uid'];
}