Activity filter for Group Calendar

if anyone wants to have the activity filter for Group Calendar add this code in your bp-group-calendar.php at the end after Support Functions

function bp_event_activity_filter_option() { ?>
<option value="new_calendar_event"><?php _e( 'Show School Event', 'bp-review' ) ?></option>

<?php }
add_action( 'bp_activity_filter_options', 'bp_event_activity_filter_option' );
add_action( 'bp_school_activity_filter_options', 'bp_event_activity_filter_option' );