Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Exactly. print_error() is THE way to do all error messages in all new code. It not only prints a nice string in your own language (usually from the error.php language file) but it contains a link to the wiki for more information/feedback etc. I've added this to the coding guide.

If anyone wants to help convert any of the old error() calls to use print_error() instead, we'd love you to help!
Average of ratings: Useful (1)