function amazon_get_associate_id in Amazon Product Advertisement API 7
Same name and namespace in other branches
- 6 amazon.module \amazon_get_associate_id()
- 7.2 amazon.module \amazon_get_associate_id()
2 calls to amazon_get_associate_id()
- amazon_http_request in ./
amazon.module - Create an issue an HTTP request to the Amazon API.
- 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 825
Code
function amazon_get_associate_id($locale = NULL) {
if (!$locale) {
$locale = variable_get('amazon_default_locale', 'US');
}
$cache = amazon_data_cache();
return variable_get('amazon_locale_' . $locale . '_associate_id', $cache['locales'][$locale]['da_associate_id']);
}