You are here

function _adsense_validate_dimensions in Google AdSense integration 5

Same name and namespace in other branches
  1. 5.2 adsense.module \_adsense_validate_dimensions()
1 call to _adsense_validate_dimensions()
adsense_display in ./adsense.module

File

./adsense.module, line 1118

Code

function _adsense_validate_dimensions($format) {
  $all_ads = adsense_ad_formats();
  $ret = false;
  if ($all_ads[$format]['desc']) {
    $ret = true;
  }
  else {
    $ret = false;
  }
  return $ret;
}