You are here

function yr_verdata_init in Yr Weatherdata 6.2

Implementation of hook_init().

File

./yr_verdata.module, line 101
yr_verdata.module This file contains the code for getting the forecast from yr.no and displaying it on a Drupal site.

Code

function yr_verdata_init() {
  $modpath = drupal_get_path('module', 'yr_verdata');
  drupal_add_css($modpath . '/yr_verdata.css');
  if (module_exists('jquery_ui') && variable_get('yr_verdata_ui_css', 1) == 1) {
    jquery_ui_add(array(
      'ui.tabs',
    ));
    drupal_add_js($modpath . '/yr_verdata.js');
    drupal_add_css($modpath . '/yr_verdata_jui.css');
  }
}