You are here

function amazon_get_associate_id in Amazon Product Advertisement API 6

Same name and namespace in other branches
  1. 7.2 amazon.module \amazon_get_associate_id()
  2. 7 amazon.module \amazon_get_associate_id()
2 calls to amazon_get_associate_id()
amazon_http_request in ./amazon.module
amazon_requirements in ./amazon.install
implementation of hook_requirements to make sure we let them know about the requirement for amazon_aws_secret_access_key

File

./amazon.module, line 778

Code

function amazon_get_associate_id() {
  switch (variable_get('amazon_associate_setting', 'association')) {
    case 'association':
      return 'drupal0a-20';
      break;
    case 'custom':
      return variable_get('amazon_custom_associate_id', '');
      break;
    default:
      return FALSE;
  }
}