*
* @param int $id
* The event id to copy.
- * obj $newEvent object of CRM_Event_DAO_Event
* boolean $afterCreate call to copy after the create function
* @param null $newEvent
* @param bool $afterCreate
*
- * @return void
+ * @return CRM_Event_DAO_Event
*/
public static function copy($id, $newEvent = NULL, $afterCreate = FALSE) {
- $defaults = $eventValues = array();
+ $eventValues = array();
//get the require event values.
$eventParams = array('id' => $id);
/**
* Functions to inform caller that Location is obsolete and Address, Phone, Email, Website should be used
+ * @param $params
+ * @return array
*/
function civicrm_api3_location_create($params) {
return civicrm_api3_create_error("API (Location, Create) does not exist, use the Address/Phone/Email/Website API instead", array('obsoleted' => TRUE));
$isPcpApprovalNeeded = FALSE,
$isSeparatePayment = FALSE,
$honoreeSection = FALSE,
- $allowOtherAmmount = TRUE
+ $allowOtherAmount = TRUE
);
$this->openCiviPage("contribute/transact", "reset=1&action=preview&id=$pageId", NULL);
$isPcpApprovalNeeded = FALSE,
$isSeparatePayment = FALSE,
$honoreeSection = FALSE,
- $allowOtherAmmount = TRUE
+ $allowOtherAmount = TRUE
);
// enable verify ssl
// create contribution page with randomized title and default params
$amountSection = TRUE;
$payLater = TRUE;
- $allowOtherAmmount = FALSE;
+ $allowOtherAmount = FALSE;
$onBehalf = FALSE;
$pledges = FALSE;
$recurring = FALSE;
$processorName = 'Test Processor';
$amountSection = TRUE;
$payLater = TRUE;
- $allowOtherAmmount = TRUE;
+ $allowOtherAmount = TRUE;
$onBehalf = FALSE;
$pledges = FALSE;
$recurring = FALSE;
FALSE,
$isSeparatePayment,
TRUE,
- $allowOtherAmmount,
+ $allowOtherAmount,
TRUE,
'Donation',
$fixedAmount,