+ //Check if recurring activity
+ $isRecurringActivity = CRM_Core_BAO_RecurringEntity::getParentFor($row['activity_id'], 'civicrm_activity');
+ $row['repeat'] = '';
+ if ($isRecurringActivity) {
+ if ($row['activity_id'] == $isRecurringActivity) {
+ $row['repeat'] = 'Recurring Activity - (Parent)';
+ }
+ else {
+ $row['repeat'] = 'Recurring Activity - (Child)';
+ }
+ }