*
* access public
*
- * @return array reference to the array of default values
- *
+ * @return array
+ * reference to the array of default values
*/
/**
* @return array
if ($this->_view == 'transaction' && ($this->_action & CRM_Core_Action::BROWSE)) {
return;
}
- $defaults = array( );
+ $defaults = array();
if ($this->_mode) {
$defaults = $this->_values;
if (empty($defaults['trxn_date']) && empty($defaults['trxn_date_time'])) {
list($defaults['trxn_date'],
$defaults['trxn_date_time']
- ) = CRM_Utils_Date::setDateDefaults(
+ ) = CRM_Utils_Date::setDateDefaults(
CRM_Utils_Array::value('register_date', $defaults), 'activityDateTime'
);
}
$allPanes[$name] = array(
'url' => CRM_Utils_System::url('civicrm/payment/add', $urlParams),
'open' => $open,
- 'id' => $type
+ 'id' => $type,
);
CRM_Core_Payment_Form::buildPaymentForm($this, $this->_paymentProcessor, FALSE);
'type' => 'upload',
'name' => ts('%1', array(1 => $buttonName)),
'js' => $js,
- 'isDefault' => TRUE
+ 'isDefault' => TRUE,
),
array(
'type' => 'cancel',
- 'name' => ts('Cancel')
+ 'name' => ts('Cancel'),
),
)
);
$session = CRM_Core_Session::singleton();
$session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view',
- "reset=1&cid={$this->_contactId}&selectedChild=participant"
- ));
+ "reset=1&cid={$this->_contactId}&selectedChild=participant"
+ ));
}
}
//get the payment processor id as per mode.
//@todo unclear relevance of mode - seems like a lot of duplicated params here!
$this->_params['payment_processor'] = $params['payment_processor_id'] =
- $this->_params['payment_processor_id'] = $submittedValues['payment_processor_id'] = $this->_paymentProcessor['id'];
+ $this->_params['payment_processor_id'] = $submittedValues['payment_processor_id'] = $this->_paymentProcessor['id'];
$now = date('YmdHis');
$fields = array();
if ($this->_context == 'standalone' && !empty($submittedValues['is_email_receipt'])) {
list($this->userDisplayName,
$this->userEmail
- ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactId);
+ ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactId);
$this->assign('displayName', $this->userDisplayName);
}
CRM_Core_Session::setStatus($statusMsg, ts('Complete'), 'success');
$session->replaceUserContext(CRM_Utils_System::url('civicrm/contact/view',
- "reset=1&cid={$this->_contactId}&selectedChild=participant"
- ));
+ "reset=1&cid={$this->_contactId}&selectedChild=participant"
+ ));
}
}
'groupName' => 'msg_tpl_workflow_contribution',
'valueName' => 'payment_or_refund_notification',
'contactId' => $this->_contactId,
- 'PDFFilename' => ts('notification').'.pdf',
+ 'PDFFilename' => ts('notification') . '.pdf',
);
// try to send emails only if email id is present