-
Notifications
You must be signed in to change notification settings - Fork 50
Message system
elplatt edited this page Dec 21, 2012
·
3 revisions
The message system allows users to register notices and errors to be displayed when a page is rendered.
To register an error or message, call one of the following functions:
error_register('This is an error message');
message_register('This is an informational notice');
To clear all errors (or messages) and display them as an html string, call the following functions:
$error_html = theme('errors');
$message_html = theme('messages');