CRM_Core_Error::fatal('The contact profile needs to contain the primary email address field');
}
-
$ufJoinParams['weight'] = 1;
$this->_activityProfileId = CRM_Core_BAO_UFJoin::findUFGroupId($ufJoinParams);
* @return void
* @see valid_date
*/
-
public static function formRule($fields, $files, $errors) {
$errors = array();
'tag_unconfirmed'
);
-
if ($tag_name) {
// Check if contact 'email confirmed' tag exists, else create one
// This should be in the petition module initialise code to create a default tag for this
break;
}
-
$transaction = new CRM_Core_Transaction();
$addToGroupID = isset($this->_addToGroupID) ? $this->_addToGroupID : NULL;
$this->postProcessHook();
// set the template to thank you
- $url =
- CRM_Utils_System::url(
- 'civicrm/petition/thankyou',
- 'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
- );
+ $url = CRM_Utils_System::url(
+ 'civicrm/petition/thankyou',
+ 'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
+ );
CRM_Utils_System::redirect($url);
}
}
}
if ($fields) {
- /*
- // unset any email-* fields since we already collect it, CRM-2888
- foreach ( array_keys( $fields ) as $fieldName ) {
- if ( substr( $fieldName, 0, 6 ) == 'email-' ) {
- unset( $fields[$fieldName] );
- }
- }
- */
-
-
$this->assign($name, $fields);
$addCaptcha = FALSE;