Shared calendars are already in OC_Calendar_Calendar::allCalendars()

master
Thomas Tanghus 2012-09-02 15:58:20 +02:00
parent 63511f05ca
commit b663c7fd7f
1 changed files with 0 additions and 12 deletions

View File

@ -22,18 +22,6 @@ foreach($calendars as $calendar){
}
}
$events_baseURL = OCP\Util::linkTo('calendar', 'ajax/events.php');
$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_rw',
'backgroundColor' => '#1D2D44',
'borderColor' => '#888',
'textColor' => 'white',
'editable'=>'true');
$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_r',
'backgroundColor' => '#1D2D44',
'borderColor' => '#888',
'textColor' => 'white',
'editable' => 'false');
OCP\Util::emitHook('OC_Calendar', 'getSources', array('sources' => &$eventSources));
$categories = OC_Calendar_App::getCategoryOptions();