From 33c59f441fb002b3b9b55135990ac89cb4f5b3e6 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 5 Feb 2015 09:25:19 -0500 Subject: [PATCH] Redirect to member dashboard after updating CC info. * memberdashboard.php (memberdashboard_civicrm_postProcess): New function. --- memberdashboard.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/memberdashboard.php b/memberdashboard.php index 66686b4..34bcddf 100644 --- a/memberdashboard.php +++ b/memberdashboard.php @@ -176,3 +176,14 @@ function memberdashboard_civicrm_buildForm($formName, &$form) { } } } + +function memberdashboard_civicrm_postProcess($formName, &$form) { + // Redirect to Member Dashboard after updating billing info. The + // default behavior is to go to the standard CiviCRM dashboard, + // which is undesirable. + if($formName == 'CRM_Contribute_Form_UpdateBilling') { + CRM_Utils_System::redirect(CRM_Utils_System::url( + 'civicrm/member-dashboard' + )); + } +} -- 2.25.1