'sort_name' => array('title' => ts('Employee Name')),
'source' => array(
'title' => ts('Contact Source'),
- 'type' => CRM_Utils_Type::T_STRING,
+ 'type' => CRM_Utils_Type::T_STRING,
),
'id' => array(
'title' => ts('Contact ID'),
protected $_customGroupExtends = array(
'Contact',
'Individual',
- 'Contribution'
+ 'Contribution',
);
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
}
$entryFound = $this->alterDisplayAddressFields($row, $rows, $rowNum, 'contribute/detail', 'List all contribution(s)') ? TRUE : $entryFound;
- //handle gender
- if (array_key_exists('civicrm_contact_gender_id', $row)) {
- if ($value = $row['civicrm_contact_gender_id']) {
- $gender = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'gender_id');
- $rows[$rowNum]['civicrm_contact_gender_id'] = $gender[$value];
+ //handle gender
+ if (array_key_exists('civicrm_contact_gender_id', $row)) {
+ if ($value = $row['civicrm_contact_gender_id']) {
+ $gender = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'gender_id');
+ $rows[$rowNum]['civicrm_contact_gender_id'] = $gender[$value];
+ }
+ $entryFound = TRUE;
}
- $entryFound = TRUE;
- }
- // display birthday in the configured custom format
- if (array_key_exists('civicrm_contact_birth_date', $row)) {
- $birthDate = $row['civicrm_contact_birth_date'];
- if ($birthDate) {
- $rows[$rowNum]['civicrm_contact_birth_date'] = CRM_Utils_Date::customFormat($birthDate, '%Y%m%d');
+ // display birthday in the configured custom format
+ if (array_key_exists('civicrm_contact_birth_date', $row)) {
+ $birthDate = $row['civicrm_contact_birth_date'];
+ if ($birthDate) {
+ $rows[$rowNum]['civicrm_contact_birth_date'] = CRM_Utils_Date::customFormat($birthDate, '%Y%m%d');
+ }
+ $entryFound = TRUE;
}
- $entryFound = TRUE;
- }
// skip looking further in rows, if first row itself doesn't
// have the column we need