Skip to content

Commit

Permalink
Expose Kronolith::getDefaultCalendar() via the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 31, 2013
1 parent e983c74 commit 865ee4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kronolith/lib/Api.php
Expand Up @@ -465,6 +465,16 @@ public function sources($writeable = false, $sync_only = false)
return $out;
}

/**
* Retrieve the UID for the current user's default calendar.
*
* @return string UID.
*/
public function getDefaultShare()
{
return Kronolith::getDefaultCalendar(Horde_Perms::EDIT, true);
}

/**
* Returns the ids of all the events that happen within a time period.
* Only includes recurring events once per time period, and does not include
Expand Down

0 comments on commit 865ee4c

Please sign in to comment.