You are here

function adsense_request_unblock in Google AdSense integration 7

Same name and namespace in other branches
  1. 6 adsense.module \adsense_request_unblock()

Displays a request to disable adblockers, when their use is detected.

1 call to adsense_request_unblock()
adsense_display in ./adsense.module
Generates the Google AdSense Ad.

File

./adsense.module, line 518
Displays Google AdSense ads on Drupal pages.

Code

function adsense_request_unblock() {
  static $done = FALSE;
  if (!$done) {
    drupal_add_js(file_get_contents(drupal_get_path('module', 'adsense') . '/js/unblock.js'), 'inline');
    $done = TRUE;
  }
}