| 5 theme.inc | theme_status_messages($display = NULL) |
| 6 theme.inc | theme_status_messages( |
| 7 theme.inc | theme_status_messages($variables) |
| 8 theme.inc | theme_status_messages($variables) |
Returns themed set of status and/or error messages. The messages are grouped by type.
Return value
A string containing the messages.
Related topics
3 calls to theme_status_messages()
File
- includes/
theme.inc, line 421 - The theme system, which controls the output of Drupal.
Code
function theme_status_messages() {
if ($data = drupal_get_messages()) {
$output = '';
foreach ($data as $type => $messages) {
$output .= "<div class=\"messages $type\">\n";
if (count($messages) > 1) {
$output .= " <ul>\n";
foreach ($messages as $message) {
$output .= ' <li>' . $message . "</li>\n";
}
$output .= " </ul>\n";
}
else {
$output .= $messages[0];
}
$output .= "</div>\n";
}
return $output;
}
}
Login or register to post comments