function awssdk_config_load in AWS SDK for PHP 7.3
Same name and namespace in other branches
- 7.5 awssdk.module \awssdk_config_load()
- 7.4 awssdk.module \awssdk_config_load()
Load the default AWSSDK settings and apply variable overrides.
Return value
An associative array containing AWSSDK setting values.
1 call to awssdk_config_load()
- config.inc in ./
config.inc - Provide AWSSDK config file that allows for Drupal variable overrides.
File
- ./
awssdk.module, line 79 - Provides primary Drupal hook implementations.
Code
function awssdk_config_load() {
if (!($config =& drupal_static(__FUNCTION__))) {
$config = ($cache = cache_get(__FUNCTION__)) ? $cache->data : array();
}
if (!$config) {
if ($defaults = awssdk_config_defaults()) {
foreach ($defaults as $key => $value) {
if ($override = variable_get(strtolower($key))) {
$value = $override;
}
$config[$key] = $value;
}
}
cache_set(__FUNCTION__, $config);
}
return $config;
}