Fix preprocess_page for D6
[mkdruding1.git] / template.php
1 <?php 
2 function mkdruding1_preprocess_page(&$vars) {
3   //wouold be nice to include this only during search hook
4   drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js', 
5     'theme');
6   // in ding1 we draw facets to our tab, we could set up the facet container
7   // in /mkdru-results.tpl.php. However, I still do it client side in
8   // the "mkdruFacetContainer" JS theme function to get hold of facet config
9   // this signals that client side container generation should be used
10   drupal_add_js(array('mkdru' => array('facetContainerSelector' => 
11     '#mkdru-raw-facet-container')), 'setting');
12   // looks like D6 needs this
13   $vars['scripts'] = drupal_get_js();
14 }
15