function _adsense_validate_channel in Google AdSense integration 5
Same name and namespace in other branches
- 5.2 adsense.module \_adsense_validate_channel()
2 calls to _adsense_validate_channel()
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;
}