You are here

function ad_init in Advertisement 6.2

Same name and namespace in other branches
  1. 7 ad.module \ad_init()

Implementation of hook_init.

File

./ad.module, line 445

Code

function ad_init() {

  // We do this in the init hook so that it doesn't get skipped when block
  // caching is enabled.
  $method = variable_get('ad_display', 'javascript');
  if ($method == 'jquery') {
    drupal_add_js('misc/jquery.js', 'core');
  }
}