Skip to content

Commit

Permalink
Expose Nag::getDefaultTasklist via API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 31, 2013
1 parent 0aa6b23 commit c8316ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nag/lib/Api.php
Expand Up @@ -1412,6 +1412,7 @@ public function saveTimeObject(array $timeobject)
*
* @return array An array of the available sources. Keys are source IDs,
* values are source titles.
* @since 4.2.0
*/
public function sources($writeable = false, $sync_only = false)
{
Expand All @@ -1429,4 +1430,15 @@ public function sources($writeable = false, $sync_only = false)
return $out;
}

/**
* Retrieve the UID for the current user's default tasklist.
*
* @return string UID.
* @since 4.2.0
*/
public function getDefaultShare()
{
return Nag::getDefaultTasklist(Horde_Perms::EDIT);
}

}

0 comments on commit c8316ba

Please sign in to comment.