type; if (function_exists($function)) { $function($variables, $hook); } } // */ /** * Override or insert variables into the comment templates. * * @param array $variables * Variables to pass to the theme template. * @param string $hook * The name of the template being rendered ("comment" in this case.) */ /* -- Delete this line if you want to use this function function STARTERKIT_preprocess_comment(&$variables, $hook) { $variables['sample_variable'] = t('Lorem ipsum.'); } // */ function nova1ka_links__locale_block($variables) { global $language; unset($variables['links'][$language->language]); return theme('links', $variables); } function nova1ka_preprocess_html(&$variables) { drupal_add_css('https://fonts.googleapis.com/css?family=Montserrat:200,200i,300,300i,400,400i,500,500i,600,600i,700,700i&subset=latin-ext', array('group' => CSS_THEME)); // JS external drupal_add_js('https://www.google.com/recaptcha/api.js', array('group' => JS_THEME)); } /** * Implements template_preprocess_search_result * @param type $vars */ //function nova1ka_preprocess_search_result(&$vars) { // $node = $vars['result']['node']; // if ($node->nid) { // if the result is a node we can load the teaser // $vars['teaser'] = node_view($node, 'teaser'); // } //} // !!!! SAMO ZA DEVELOPMENT, da pobriĊĦe CACHE pri urejanu CSS in JS //drupal_flush_all_caches();