Skip to content

Commit

Permalink
Fixes #51 - Make it possible to pass additional data to events json
Browse files Browse the repository at this point in the history
  • Loading branch information
Juho Jaakkola committed Jun 6, 2013
1 parent 5263764 commit d1dc2d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion models/model.php
Expand Up @@ -2167,7 +2167,11 @@ function event_calendar_get_page_content_fullcalendar_events($start_date,$end_da
$event_item['is_event_poll'] = FALSE;
$event_item['url'] = elgg_get_site_url().'event_calendar/view_light_box/'.$event->guid;
}


// Allow other plugins to modify the data
$params = array('entity' => $event);
$event_item = elgg_trigger_plugin_hook('prepare', 'event_calendar:json', $params, $event_item);

$event_array[] = $event_item;
}
}
Expand Down

0 comments on commit d1dc2d4

Please sign in to comment.