function adsense_click_init in Google AdSense integration 6
Same name and namespace in other branches
- 7 contrib/adsense_click/adsense_click.module \adsense_click_init()
Implementation of hook_init().
File
- contrib/
adsense_click/ adsense_click.module, line 71 - Enables Drupal to track and log the clicks on AdSense ads.
Code
function adsense_click_init() {
if (variable_get('adsense_click_tracking', ADSENSE_CLICK_TRACKING_DEFAULT)) {
drupal_add_js(drupal_get_path('module', 'adsense_click') . '/adsense_click.js');
}
}