From 7c2b8b8fe367c28e91190943a30ed3144b8d0191 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 17 May 2010 14:42:19 -0400 Subject: [PATCH] This belongs in Applicaiton.php --- mnemo/lib/Api.php | 15 --------------- mnemo/lib/Application.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) 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. -- 2.11.0