$eventTemplate = CRM_Event_PseudoConstant::eventTemplates();
$autoRenew = CRM_Core_OptionGroup::values('auto_renew_options');
$membershipType = CRM_Member_PseudoConstant::membershipType();
+ $dateFields = array('birth_date' => ts('Birth Date'));
asort($activityType);
}
$sel2[$key] = $valueLabel + $membershipType;
break;
+
+ case 'birth_date':
+ if ($value['entity'] == 'civicrm_contact') {
+ $sel1Val = ts('Contact');
+ }
+ $sel2[$key] = $valueLabel + $dateFields;
+ break;
}
$sel1[$key] = $sel1Val;
}
break;
+ case 'none':
+ foreach ($sel3[$id] as $kkey => & $vval) {
+ $vval = $statusLabel;
+ }
+ break;
+
+ case null:
+ $sel3[$id] = array('' => 'hello there');
+ break;
+
case '':
$sel3[$id] = '';
break;
}
}
+ if ($mapping->entity == 'civicrm_contact') {
+ $tokenEntity = 'contact';
+ //TODO: get full list somewhere!
+ $tokenFields = array('birth_date', 'last_name');
+ //TODO: is there anything to add here?
+ }
+
$entityJoinClause = "INNER JOIN {$mapping->entity} e ON e.id = reminder.entity_id";
if ($actionSchedule->limit_to == 0) {
$entityJoinClause = "LEFT JOIN {$mapping->entity} e ON e.id = reminder.entity_id";
$where[] = "e.status_id IN ({$mStatus})";
}
+ if ($mapping->entity == 'civicrm_contact') {
+ // TODO get this working
+ }
+
// CRM-13577 Introduce Smart Groups Handling
if ($actionSchedule->group_id) {
return $options;
}
}
-