From: Michael J. Rubinsky Date: Mon, 17 May 2010 18:42:19 +0000 (-0400) Subject: This belongs in Applicaiton.php X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7c2b8b8fe367c28e91190943a30ed3144b8d0191;p=horde.git This belongs in Applicaiton.php --- diff --git a/mnemo/lib/Api.php b/mnemo/lib/Api.php index 0b5d2a25b..1df7a5f2d 100644 --- a/mnemo/lib/Api.php +++ b/mnemo/lib/Api.php @@ -71,21 +71,6 @@ $_services['replace'] = array( ); /** - * Returns a list of available permissions. - * - * @return array An array describing all available permissions. - */ -function _mnemo_perms() -{ - $perms = array(); - $perms['tree']['mnemo']['max_notes'] = false; - $perms['title']['mnemo:max_notes'] = _("Maximum Number of Notes"); - $perms['type']['mnemo:max_notes'] = 'int'; - - return $perms; -} - -/** * Removes user data. * * @param string $user Name of user to remove data for. diff --git a/mnemo/lib/Application.php b/mnemo/lib/Application.php index bad856579..1b9f7117b 100644 --- a/mnemo/lib/Application.php +++ b/mnemo/lib/Application.php @@ -53,6 +53,21 @@ class Mnemo_Application extends Horde_Registry_Application } /** + * Returns a list of available permissions. + * + * @return array An array describing all available permissions. + */ + public function perms() + { + $perms = array(); + $perms['tree']['mnemo']['max_notes'] = false; + $perms['title']['mnemo:max_notes'] = _("Maximum Number of Notes"); + $perms['type']['mnemo:max_notes'] = 'int'; + + return $perms; + } + + /** * Populate dynamically-generated preference values. * * @param Horde_Core_Prefs_Ui $ui The UI object.