Commit 621ac644 authored by nicola85's avatar nicola85

Add ‘hook_bat_api_events_index_calendar_alter’

parent 9ab41402
<?php
/**
* @file
* This file contains no working PHP code; it exists to provide additional
* documentation for doxygen as well as to document hooks in the standard
* Drupal manner.
*/
function hook_bat_api_units_index_calendar_alter(&$units) {
// No example.
}
function hook_bat_api_events_index_calendar_alter(&$events, $context) {
// No example.
}
......@@ -931,6 +931,17 @@ function bat_api_services_events_index_calendar($unit_ids, $unit_types, $start_d
$events_json = _bat_api_merge_non_blocking_events($events_json);
$context = array(
'unit_ids' => $unit_ids,
'unit_types' => $unit_types,
'start_date' => $start_date_object,
'end_date' => $end_date_object,
'event_types' => $event_types,
'background' => $background,
);
drupal_alter('bat_api_events_index_calendar', $events_json, $context);
return array_values($events_json);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment