You are here

function adsense_basic_error in Google AdSense integration 5.2

1 call to adsense_basic_error()
adsense_basic_adsense in ./adsense_basic.module

File

./adsense_basic.module, line 63

Code

function adsense_basic_error($code) {
  switch ($code) {
    case ADSENSE_BASIC_ERROR_NOT_CONFIGURED:
      $text = t('Adsense basic is not correctly configured. Please check your settings.');
      break;
    default:
      $text = t('Unknown Adsense basic error.');
      break;
  }
  drupal_set_message($text, 'error');
}