Skip to content

Commit

Permalink
Expose Mnemo::getDefaultNotepad via the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 31, 2013
1 parent 063858d commit 9511e0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mnemo/lib/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ public function replace($uid, $content, $contentType)
*
* @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 @@ -472,5 +473,15 @@ public function sources($writeable = false, $sync_only = false)
return $out;
}

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

}

0 comments on commit 9511e0e

Please sign in to comment.