summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Carver2013-05-05 22:17:16 (GMT)
committer andregriffin2013-05-06 19:17:14 (GMT)
commit8e3c32824057f44f6608a83f2daf2cd84a3214ea (patch)
tree3d206f6fa6be4fd1e1350e52d8228d751808b41b
parent05daacc4fa9f09706638c814f4986c18b12b119e (diff)
Mark Carver: Generated with Drush iq
-rw-r--r--includes/theme.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index f44e4b9..842f7dc 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -228,6 +228,7 @@ function bootstrap_status_messages($variables) {
'status' => t('Status message'),
'error' => t('Error message'),
'warning' => t('Warning message'),
+ 'info' => t('Informative message'),
);
// Map Drupal message types to their corresponding Bootstrap classes.
@@ -235,7 +236,11 @@ function bootstrap_status_messages($variables) {
$status_class = array(
'status' => 'success',
'error' => 'error',
- 'warning' => 'info',
+ 'warning' => 'warning',
+ // Not supported, but in theory a module could send any type of message.
+ // @see drupal_set_message()
+ // @see theme_status_messages()
+ 'info' => 'info',
);
foreach (drupal_get_messages($display) as $type => $messages) {
@@ -244,7 +249,7 @@ function bootstrap_status_messages($variables) {
$output .= " <a class=\"close\" data-dismiss=\"alert\" href=\"#\">&times;</a>\n";
if (!empty($status_heading[$type])) {
- $output .= '<h2 class="element-invisible">' . $status_heading[$type] . "</h2>\n";
+ $output .= '<h4 class="element-invisible">' . $status_heading[$type] . "</h4>\n";
}
if (count($messages) > 1) {