class CRM_Core_SelectValues {
/**
- * preferred mail format
+ * Preferred mail format
* @static
*/
static function pmf() {
}
/**
- * privacy options
+ * Privacy options
* @static
*/
static function privacy() {
}
/**
- * various pre defined contact super types
+ * Various pre defined contact super types
* @static
*/
static function contactType() {
}
/**
- * various pre defined unit list
+ * Various pre defined unit list
* @static
*/
static function unitList($unitType = NULL) {
}
/**
- * membership type unit
+ * Membership type unit
* @static
*/
static function membershipTypeUnitList( ) {
}
/**
- * various pre defined period types
+ * Various pre defined period types
* @static
*/
static function periodType() {
}
/**
- * various pre defined member visibility options
+ * Various pre defined email selection methods
+ * @static
+ */
+ static function emailSelectMethods() {
+ return array(
+ 'automatic' => ts("Automatic"),
+ 'location-only' => ts("Only send to email addresses assigned to the specified location"),
+ 'location-prefer' => ts("Prefer email addresses assigned to the specified location"),
+ 'location-exclude' => ts("Exclude email addresses assigned to the specified location")
+ );
+ }
+
+ /**
+ * Various pre defined member visibility options
* @static
*/
static function memberVisibility() {
}
/**
- * various pre defined event dates
+ * Various pre defined event dates
* @static
*/
static function eventDate() {
'Multi-Select' => ts('Multi-Select'),
'AdvMulti-Select' => ts('AdvMulti-Select'),
'Link' => ts('Link'),
- 'ContactReference' => ts('Autocomplete Select'),
+ 'ContactReference' => ts('Autocomplete-Select'),
);
}
/**
- * various pre defined extensions for dynamic properties and groups
+ * Various pre defined extensions for dynamic properties and groups
*
* @static
*/
}
/**
- * styles for displaying the custom data group
+ * Styles for displaying the custom data group
*
* @static
*/
}
/**
- * for displaying the uf group types
+ * For displaying the uf group types
*
* @static
*/
}
/**
- * the status of a contact within a group
+ * The status of a contact within a group
*
* @static
*/
}
/**
- * list of Group Types
+ * List of Group Types
* @static
*/
static function groupType() {
}
/**
- * compose the parameters for a date select object
+ * Compose the parameters for a date select object
*
* @param string|NULL $type the type of date
* @param string|NULL $format date format ( QF format)
}
/**
- * values for UF form visibility options
+ * Values for UF form visibility options
*
* @static
*/
}
/**
- * values for group form visibility options
+ * Values for group form visibility options
*
* @static
*/
}
/**
- * different type of Mailing Components
+ * Different type of Mailing Components
*
* @static
* return array
}
/**
- * Function to get hours
+ * Get hours
*
*
* @static
}
/**
- * Function to get minutes
+ * Get minutes
*
*
* @static
}
/**
- * Function to get the Map Provider
+ * Get the Map Provider
*
* @return array $map array of map providers
* @static
}
/**
- * Function to get the Geocoding Providers from available plugins
+ * Get the Geocoding Providers from available plugins
*
* @return array $geo array of geocoder providers
* @static
}
/**
- * Function to get the Address Standardization Providers from available
+ * Get the Address Standardization Providers from available
* plugins
*
* @return array $addr array of address standardization providers
}
/**
- * different type of Mailing Tokens
+ * Different type of Mailing Tokens
*
* @static
* return array
}
/**
- * different type of Activity Tokens
+ * Different type of Activity Tokens
*
* @static
* return array
}
/**
- * different type of Membership Tokens
+ * Different type of Membership Tokens
*
* @static
* return array
}
/**
- * different type of Event Tokens
+ * Different type of Event Tokens
*
* @static
* return array
}
/**
- * different type of Event Tokens
+ * Different type of Event Tokens
*
* @static
* return array
'{contribution.total_amount}' => ts('Total Amount'),
'{contribution.fee_amount}' => ts('Fee Amount'),
'{contribution.net_amount}' => ts('Net Amount'),
- '{contribution.non_deductible_amount}' => ts('Non Deductible Amount'),
+ '{contribution.non_deductible_amount}' => ts('Non-deductible Amount'),
'{contribution.receive_date}' => ts('Contribution Receive Date'),
'{contribution.payment_instrument}' => ts('Payment Instrument'),
'{contribution.trxn_id}' => ts('Transaction ID'),
}
/**
- * different type of Contact Tokens
+ * Different type of Contact Tokens
*
* @static
* return array
'is_deceased', 'deceased_date', 'legal_identifier', 'contact_sub_type', 'user_unique_id',
);
- $customFields = CRM_Core_BAO_CustomField::getFields('Individual');
- $customFieldsAddress = CRM_Core_BAO_CustomField::getFields('Address');
- $customFields = $customFields + $customFieldsAddress;
+ $customFields = CRM_Core_BAO_CustomField::getFields(array('Individual', 'Address'));
$legacyTokenNames = array_flip(CRM_Utils_Token::legacyContactTokens());
foreach ($values as $val) {
continue;
}
//keys for $tokens should be constant. $token Values are changed for Custom Fields. CRM-3734
- if ($customFieldId = CRM_Core_BAO_CustomField::getKeyID($val)) {
- $tokens["{contact.$val}"] = !empty($customFields[$customFieldId]) ? $customFields[$customFieldId]['label'] . " :: " . $customFields[$customFieldId]['groupTitle'] : '';
+ $customFieldId = CRM_Core_BAO_CustomField::getKeyID($val);
+ if ($customFieldId) {
+ // CRM-15191 - if key is not in $customFields then the field is disabled and should be ignored
+ if (!empty($customFields[$customFieldId])) {
+ $tokens["{contact.$val}"] = $customFields[$customFieldId]['label'] . " :: " . $customFields[$customFieldId]['groupTitle'];
+ }
}
else {
// Support legacy token names
}
/**
- * different type of Participant Tokens
+ * Different type of Participant Tokens
*
* @static
* return array
}
/**
- * Function to get numeric options
+ * Get numeric options
*
*
* @static
}
/**
- * barcode types
+ * Barcode types
* @static
*/
static function getBarcodeTypes() {
}
/**
- * dedupe rule types
+ * Dedupe rule types
*/
static function getDedupeRuleTypes() {
return array(
}
/**
- * campaign group types
+ * Campaign group types
*/
static function getCampaignGroupTypes() {
return array(
}
/**
- * subscription history method
+ * Subscription history method
*/
static function getSubscriptionHistoryMethods() {
return array(
}
/**
- * premium units
+ * Premium units
*/
static function getPremiumUnits() {
return array(
}
/**
- * extension types
+ * Extension types
*/
static function getExtensionTypes() {
return array(
}
/**
- * job frequency
+ * Job frequency
*/
static function getJobFrequency() {
return array(
}
/**
- * profile group types
+ * Profile group types
*
* @static
*/
/**
- * word replacement match type
+ * Word replacement match type
*/
static function getWordReplacementMatchType() {
return array(
}
/**
- * mailing group types
+ * Mailing group types
*/
static function getMailingGroupTypes() {
return array(
return $scheduleReminderFrequencyUnits;
}
}
-