function uc_recurring_user_cancel_form_submit in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 uc_recurring.pages.inc \uc_recurring_user_cancel_form_submit()
- 6 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 35 - 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;
}