You are here

function adsense_footer in Google AdSense integration 5

Same name and namespace in other branches
  1. 5.2 adsense.module \adsense_footer()

Implementation of hook_footer().

File

./adsense.module, line 1638

Code

function adsense_footer($main = 0) {
  global $base_url;
  if (variable_get(ADSENSE_CLICK_TRACKING, 0)) {
    $path = base_path() . drupal_get_path('module', 'adsense') . '/adsense_click.js';
    $js = '<script type="text/javascript" src="' . $path . '"></script>';
    return $js;
  }
}