Elgg/Elgg — pull request #5396 by Facyla (2013-04-24 13:07:10+00:00)
Title: Added a messages_get_unread function

The messages_count_unread function is fine, but doesn't really help when building plugin or widgets that aim to display unread messages *only*.
=> This function adds ability to get unread messages.

Other improvement could be to add some parameters, such as "$count = false" to replace messages_count_unread by a more convenient function.