aboutsummaryrefslogtreecommitdiff
path: root/template.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-26 22:48:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-26 22:48:11 -0300
commit97356e956620b678e247696a31c843e96a87e2b8 (patch)
tree33d5b70f5bc3520cb6c9f583fbb3cc810a02eb7d /template.php
parentb8331d7d0de9923b6cf620444be09d1a3018643f (diff)
downloadmuambeiro-97356e956620b678e247696a31c843e96a87e2b8.tar.gz
muambeiro-97356e956620b678e247696a31c843e96a87e2b8.tar.bz2
Adding colorbox ajax support
Diffstat (limited to 'template.php')
-rw-r--r--template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/template.php b/template.php
index b23a61a..1353aa9 100644
--- a/template.php
+++ b/template.php
@@ -38,6 +38,11 @@ function muambeiro_preprocess_page(&$vars) {
if (isset($vars['node']) && $vars['node']->status == 0) {
$vars['title'] = drupal_get_title() . ' <span class="marker">(' . t('Unpublished') . ')</span>';
}
+
+ // See https://drupal.org/node/836160#comment-5026414
+ if (isset($_GET['template']) && $_GET['template'] == 'colorbox') {
+ $vars['theme_hook_suggestions'][] = 'page__colorbox';
+ }
}
/**