You are here

function _adsense_validate_channel in Google AdSense integration 5

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

File

./adsense.module, line 1141

Code

function _adsense_validate_channel($channel = 1) {
  if ($channel < 1 || $channel > ADSENSE_MAX_CHANNELS) {

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