<?php
-function mkdruding2_preprocess_page(&$vars, $hook) {
+function mkdruding1_preprocess_page(&$vars) {
//wouold be nice to include this only during search hook
- drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js');
+ drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js',
+ 'theme');
// in ding1 we draw facets to our tab, we could set up the facet container
// in /mkdru-results.tpl.php. However, I still do it client side in
// the "mkdruFacetContainer" JS theme function to get hold of facet config
// this signals that client side container generation should be used
drupal_add_js(array('mkdru' => array('facetContainerSelector' =>
'#mkdru-raw-facet-container')), 'setting');
+ // looks like D6 needs this
+ $vars['scripts'] = drupal_get_js();
}