/** * Build the array of rows, nested by month and event. * * @param string $sql * The SQL query. * @param array $rows * The array of rows to build. */ public function buildRows($sql, &$rows) { // First, get the big events array. $this->getAllEvents(); parent::buildRows($sql, $rows); foreach ($rows as $rowId => $row) { $this->_nestedRows[$row['civicrm_event_event_start_date_month']][$row['civicrm_event_event_id_hidden']][] = $row; } }