+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
if (!empty($row['summary'])) {
$data['description'][] = $row['summary'];
}
- foreach ($request['extra'] as $field) {
- $data['extra'][$field] = isset($row[$field]) ? $row[$field] : NULL;
+ // Add repeating info
+ $repeat = CRM_Core_BAO_RecurringEntity::getPositionAndCount($row['id'], 'civicrm_event');
+ $data['extra']['is_recur'] = FALSE;
+ if ($repeat) {
+ $data['suffix'] = ts('(%1 of %2)', array(1 => $repeat[0], 2 => $repeat[1]));
+ $data['extra']['is_recur'] = TRUE;
}
$output[] = $data;
}