From 478086b662e23267137f12bf57f6a7ad56025d98 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 13 Feb 2008 10:52:54 +0000 Subject: A little reoirganisation in elgglib git-svn-id: https://code.elgg.org/elgg/trunk@10 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index e6930091c..ae663af0c 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -211,6 +211,16 @@ } + /** + * Counts the number of messages, either globally or in a particular register + * + * @param string $register Optionally, the register + * @return integer The number of messages + */ + function count_messages($register = "") { + return system_messages(null,$register,true); + } + /** * An alias for system_messages($message) to handle standard user information messages * @@ -230,16 +240,6 @@ function register_error($error) { return system_messages($error, "errors"); } - - /** - * Counts the number of messages, either globally or in a particular register - * - * @param string $register Optionally, the register - * @return integer The number of messages - */ - function count_messages($register = "") { - return system_messages(null,$register,true); - } /** * Event register -- cgit v1.2.3