summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano Sant'Ana2013-04-22 20:29:38 (GMT)
committer Fabiano Sant'Ana2013-04-22 20:30:21 (GMT)
commit89182e84edf49ef62d96db671008180b556220af (patch)
tree4ad9f25f6a96527e9456c6f7b159c20deb66a7cd
parentdadfddf241d3410c733fa6687ee1fa84f89fdf42 (diff)
Adding support for renderable arrays in bootstrap modal's header
-rw-r--r--includes/theme.inc2
-rwxr-xr-xtemplate.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index f63e683..f5c511f 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -368,7 +368,7 @@ function bootstrap_bootstrap_modal($variables) {
$output = '<div'. drupal_attributes($variables['attributes']) .'>';
$output .= '<div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>';
- $output .= '<h3>'. check_plain($variables['heading']) .'</h3>';
+ $output .= '<h3>'. $variables['html_heading']? $variables['heading'] : check_plain($variables['heading']) .'</h3>';
$output .= '</div>';
$output .= '<div class="modal-body">'. render($variables['body']) .'</div>';
$output .= '<div class="modal-footer">'. render($variables['footer']) .'</div>';
diff --git a/template.php b/template.php
index 4998bd9..27d7dbf 100755
--- a/template.php
+++ b/template.php
@@ -64,6 +64,7 @@ function bootstrap_theme(&$existing, $type, $theme, $path) {
'body' => '',
'footer' => '',
'attributes' => array(),
+ 'html_heading' => FALSE,
),
),
'bootstrap_accordion' => array(