function _adsense_is_responsive in Google AdSense integration 7
Helper function to determine if an ad format is responsive.
Parameters
string $format: Ad format.
Return value
bool TRUE if the ad is responsive.
2 calls to _adsense_is_responsive()
- theme_adsense_ad in ./
adsense.module - Default AdSense ad unit theming.
- _adsense_managed_get_ad in managed/
adsense_managed.module - Generates the AdSense ad.
File
- ./
adsense.module, line 536 - Displays Google AdSense ads on Drupal pages.
Code
function _adsense_is_responsive($format) {
return in_array($format, array(
'responsive',
'link',
'autorelaxed',
));
}