'toName' => $contact['display_name'],
'toEmail' => $email,
'subject' => $messageSubject,
+ 'entity' => 'action_schedule',
+ 'entity_id' => $scheduleID,
);
if (!$html || $contact['preferred_mail_format'] == 'Text' ||
* @static
*
*/
- static function add(&$params, &$ids = NULL) {
+ static function add(&$params, $ids = array()) {
$actionSchedule = new CRM_Core_DAO_ActionSchedule();
$actionSchedule->copyValues($params);
$stateProvince = CRM_Core_PseudoConstant::stateProvince();
$loc['street_address'] = $dao->street_address;
$loc['city'] = $dao->city;
- $loc['state_province'] = CRM_Utils_array::value($dao->state_province_id, $stateProvince);
+ $loc['state_province'] = CRM_Utils_Array::value($dao->state_province_id, $stateProvince);
$loc['postal_code'] = $dao->postal_code;
$entityTokenParams["{$tokenEntity}." . $field] = CRM_Utils_Address::format($loc);
}
// Need to check if its a smart group or not
// Then decide which table to join onto the query
- $group = CRM_Contact_DAO_Group::getTableName();
+ $group = CRM_Contact_DAO_Group::getTableName();
// Get the group information
$sql = "