This is a bad practise. Use hooks and filters instead.
You can fetch the event list using this code.
if (function_exists('google_calendar_events_get_events')) {
$events = google_calendar_events_get_events();
foreach ($events as $event) {
}
}