2 function mkdrusampletheme_preprocess_page(&$vars, $hook) {
3 # only include theme functions on search nodes since, by default, mkdru
4 # will only load the client js there
5 if (isset($vars['node']) && ($vars['node']->type == 'mkdru')) {
6 # helper functions to apply URL recipes
7 drupal_add_js(drupal_get_path('theme', 'mkdrusampletheme') . '/pz2urlrecipe.js');
8 drupal_add_js(drupal_get_path('theme', 'mkdrusampletheme') . '/customtheme.js');