2 function mkdruding2_preprocess_page(&$vars, $hook) {
3 //wouold be nice to include this only during search hook
4 drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js');
5 // in ding1 we draw facets to our tab, we could set up the facet container
6 // in /mkdru-results.tpl.php. However, I still do it client side in
7 // the "mkdruFacetContainer" JS theme function to get hold of facet config
8 // this signals that client side container generation should be used
9 drupal_add_js(array('mkdru' => array('facetContainerSelector' =>
10 '#mkdru-raw-facet-container')), 'setting');