diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-02-13 10:52:54 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-02-13 10:52:54 +0000 |
commit | 478086b662e23267137f12bf57f6a7ad56025d98 (patch) | |
tree | d15350a9bbaff3062cf730376ea079db11cdec86 /engine/lib/elgglib.php | |
parent | 5ad4b98cbd3e09f5f4c30b581f65dfa4288f8601 (diff) | |
download | elgg-478086b662e23267137f12bf57f6a7ad56025d98.tar.gz elgg-478086b662e23267137f12bf57f6a7ad56025d98.tar.bz2 |
A little reoirganisation in elgglib
git-svn-id: https://code.elgg.org/elgg/trunk@10 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 20 |
1 files changed, 10 insertions, 10 deletions
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 @@ -212,6 +212,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
*
* @param string|array $message Message or messages to add
@@ -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
|