/** * Load Kalatheme dependencies. * * Implements template_preprocess_html(). */ function kalatheme_preprocess_html(&$variables) { // Add variables for path to theme. $variables['base_path'] = base_path(); $variables['path_to_kalatheme'] = drupal_get_path('theme', 'kalatheme'); // Load all dependencies. require_once DRUPAL_ROOT . '/' . $variables['path_to_kalatheme'] . '/includes/utils.inc'; _kalatheme_load_dependencies(); }
/** * Load Kalatheme dependencies. * * Implements template_preprocess_html(). */ function kalatheme_preprocess_html(&$variables) { // Load all dependencies. _kalatheme_load_dependencies(); // Add variables for path to theme. $variables['base_path'] = base_path(); $variables['path_to_kalatheme'] = dirname(__FILE__); // Add meta for Bootstrap Responsive. // <meta name="viewport" content="width=device-width, initial-scale=1.0"> $element = array('#tag' => 'meta', '#attributes' => array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0')); drupal_add_html_head($element, 'bootstrap_responsive'); }