You are here

function theme_adsense_ad in Google AdSense integration 5.3

Same name and namespace in other branches
  1. 6 adsense.module \theme_adsense_ad()
  2. 7 adsense.module \theme_adsense_ad()

Default AdSense ad unit theming. Simply add a div with the adsense and $module classes

Parameters

$ad: string with the generated ad unit

$module: module used to generate the ad

Return value

string with the modified ad unit

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

File

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

Code

function theme_adsense_ad($ad, $module) {
  return "<div class='adsense {$module}'>\n{$ad}\n</div>";
}