function theme_disable_messages_status_messages in Disable Messages 6
Same name and namespace in other branches
- 7 disable_messages.module \theme_disable_messages_status_messages()
Theme function for theming status messages
1 theme call to theme_disable_messages_status_messages()
- _theme_disable_messages_status_messages in ./
disable_messages.module - Implementation of theme_status_messages() hook to override the core status message output.
File
- ./
disable_messages.module, line 69
Code
function theme_disable_messages_status_messages($vars) {
$messages = $vars['messages'];
$output = '';
foreach ($messages as $type => $arr_messages) {
$output .= "<div class=\"messages {$type}\">\n";
if (count($arr_messages) > 1) {
$output .= " <ul>\n";
foreach ($arr_messages as $message) {
$output .= ' <li>' . $message . "</li>\n";
}
$output .= " </ul>\n";
}
else {
$output .= array_shift($arr_messages);
}
$output .= "</div>\n";
}
return $output;
}