aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php20
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