Skip to content

Commit

Permalink
Add Kronolith_Api::deleteCalendar()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 11, 2013
1 parent 6ea70ba commit b9468f8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions kronolith/lib/Api.php
Expand Up @@ -1561,6 +1561,19 @@ public function addCalendar($name, array $params = array())
return $share->getName();
}

/**
* Delete the specified calendar.
*
* @param string $id The calendar id.
*/
public function deleteCalendar($id)
{
$calendar = $GLOBALS['injector']
->getInstance('Kronolith_Shares')
->getShare($calendar);
Kronolith::deleteShare($calendar);
}

/**
* Return an internal calendar.
*
Expand Down

0 comments on commit b9468f8

Please sign in to comment.