'title' => ts('Registered by Participant Name'),
'name' => 'registered_by_id',
),
+ 'created_id' => array(
+ 'title' => ts('Registered by Contact ID'),
+ ),
+ 'registered_by_contact_name' => array(
+ 'title' => ts('Registered by Contact Name'),
+ 'name' => 'created_id',
+ ),
'source' => array(
'title' => ts('Source'),
),
}
}
+ // Handle registered by contact name
+ if (array_key_exists('civicrm_participant_registered_by_contact_name', $row)) {
+ $registeredByContactId = $row['civicrm_participant_registered_by_contact_name'];
+ if ($registeredByContactId) {
+ $rows[$rowNum]['civicrm_participant_registered_by_contact_name'] = CRM_Contact_BAO_Contact::displayName($registeredByContactId);
+ $rows[$rowNum]['civicrm_participant_registered_by_contact_name_link'] = CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $registeredByContactId, $this->_absoluteUrl);
+ $rows[$rowNum]['civicrm_participant_registered_by_contact_name_hover'] = ts('View Contact Summary for Contact that registered the participant.');
+ }
+ }
+
// Handle value separator in Fee Level
if (array_key_exists('civicrm_participant_participant_fee_level', $row)) {
$feeLevel = $row['civicrm_participant_participant_fee_level'];