function ad_init in Advertisement 7
Same name and namespace in other branches
- 6.2 ad.module \ad_init()
Implementation of hook_init.
File
- ./
ad.module, line 493
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');
}
}