summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmburnz2013-03-22 11:55:51 (GMT)
committer jmburnz2013-03-22 11:55:51 (GMT)
commitfc2f54db3fa09a7333d607281185f2961cdcfc88 (patch)
tree896f2980bd52a117bc815638170a51aa630514ea
parent45bd4bdb3073d7220400429d84c8e0cb5fd05f97 (diff)
Remove redundant message wrappers and multiple ID's issue: #1950008
-rwxr-xr-xat_core/inc/theme.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/at_core/inc/theme.inc b/at_core/inc/theme.inc
index 8ccc270..439918f 100755
--- a/at_core/inc/theme.inc
+++ b/at_core/inc/theme.inc
@@ -164,8 +164,11 @@ function adaptivetheme_status_messages($vars) {
'error' => t('Error message'),
'warning' => t('Warning message'),
);
+
+ $output .= "<div id=\"messages\">";
+
foreach (drupal_get_messages($display) as $type => $messages) {
- $output .= "<div id=\"messages\"><div class=\"messages $type\">";
+ $output .= "<div class=\"messages $type\">";
if (!empty($status_heading[$type])) {
$output .= '<h2 class="element-invisible">' . $status_heading[$type] . "</h2>";
}
@@ -179,8 +182,11 @@ function adaptivetheme_status_messages($vars) {
else {
$output .= $messages[0];
}
- $output .= "</div></div>";
+ $output .= "</div>";
}
+
+ $output .= "</div>";
+
return $output;
}