array(
'type' => 'upload',
'name' => ts('Renew'),
- 'isDefault' => TRUE
+ 'isDefault' => TRUE,
),
array(
'type' => 'cancel',
- 'name' => ts('Cancel')
- )
+ 'name' => ts('Cancel'),
+ ),
)
);
}
array(
'type' => 'next',
'name' => ts('Delete'),
- 'isDefault' => TRUE
+ 'isDefault' => TRUE,
),
array(
'type' => 'cancel',
- 'name' => ts('Cancel')
- )
+ 'name' => ts('Cancel'),
+ ),
)
);
}
array(
'type' => 'upload',
'name' => ts('Save'),
- 'isDefault' => TRUE
+ 'isDefault' => TRUE,
),
array(
'type' => 'upload',
'name' => ts('Save and New'),
- 'subName' => 'new'
+ 'subName' => 'new',
),
array(
'type' => 'cancel',
- 'name' => ts('Cancel')
- )
+ 'name' => ts('Cancel'),
+ ),
)
);
}
* If the member & contributor are the same then the values will be the same. But if different people paid
* then they weill differ
*
- * @param $formValues
- * Array values from form. The important values we are looking for are.
+ * @param array $formValues
+ * values from form. The important values we are looking for are.
* - contact_id
* - soft_credit_contact_id
*/
- public function storeContactFields($formValues){
+ public function storeContactFields($formValues) {
// in a 'standalone form' (contact id not in the url) the contact will be in the form values
if (!empty($formValues['contact_id'])) {
$this->_contactID = $formValues['contact_id'];
// here we store details in order to do that
if (!empty($formValues['soft_credit_contact_id'])) {
$this->_receiptContactId = $this->_contributorContactID = $formValues['soft_credit_contact_id'];
- list( $this->_contributorDisplayName,
- $this->_contributorEmail ) = CRM_Contact_BAO_Contact_Location::getEmailDetails( $this->_contributorContactID );
+ list($this->_contributorDisplayName,
+ $this->_contributorEmail) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contributorContactID);
}
else {
$this->_receiptContactId = $this->_contributorContactID = $this->_contactID;