$elements[] = &$this->createElement('radio', NULL, '', ts('Include my name and message'), 0, $extraOption);
$elements[] = &$this->createElement('radio', NULL, '', ts('List my contribution anonymously'), 1, $extraOption);
$this->addGroup($elements, 'pcp_is_anonymous', NULL, ' ');
- $this->_defaults['pcp_is_anonymous'] = 0;
+ $this->_defaults['pcp_is_anonymous'] = 0;
$this->add('text', 'pcp_roll_nickname', ts('Name'), array('maxlength' => 30));
$this->add('textarea', 'pcp_personal_note', ts('Personal Note'), array('style' => 'height: 3em; width: 40em;'));
// should we skip the confirm page?
if (!CRM_Utils_Array::value('is_confirm_enabled', $this->_values)) {
+ // call the post process hook for the main page before we switch to confirm
+ $this->postProcessHook();
+
// build the confirm page
$confirmForm = &$this->controller->_pages['Confirm'];
$confirmForm->preProcess();
$data['valid']['Confirm'] = 1;
// confirm the contribution
- $confirmForm->postProcess();
+ // mainProcess calls the hook also
+ $confirmForm->mainProcess();
$qfKey = $this->controller->_key;
// redirect to thank you page