You are here

function _adsense_validate_group in Google AdSense integration 5

Same name and namespace in other branches
  1. 5.2 adsense.module \_adsense_validate_group()
2 calls to _adsense_validate_group()
_adsense_format in ./adsense.module
_adsense_get_searchbox in ./adsense.module

File

./adsense.module, line 1133

Code

function _adsense_validate_group($group = 1) {
  if ($group < 1 || $group > ADSENSE_MAX_GROUPS) {

    // Default to 1 if an invalid group is supplied
    return 1;
  }
  return $group;
}