Skip to content
Snippets Groups Projects
Commit 06336bc5 authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-89] Merging from testing into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@502 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent a69a6778
No related branches found
No related tags found
No related merge requests found
......@@ -161,14 +161,31 @@ function unl_wdn_status_messages($variables) {
$output = '';
foreach (drupal_get_messages($display) as $type => $messages) {
switch ($type) {
case 'status':
$extra_class = ' affirm';
break;
case 'warning':
$extra_class = ' alert';
break;
case 'error':
$extra_class = ' negate';
break;
default:
$extra_class = '';
break;
}
$type = ucfirst($type);
$output .= <<<EOF
<div class="wdn_notice">
<div class="wdn_notice$extra_class">
<div class="close">
<a href="#" title="Close this notice">Close this notice</a>
</div>
<div class="message">
<h3>$type</h3>
<h4>$type</h4>
EOF;
if (count($messages) > 1) {
$output .= '<ul>' . PHP_EOL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment