function _amazons3_implode in AmazonS3 7.2
Load a variable array and implode it into a string.
Parameters
string $name: The variable to load.
Return value
string The imploded string.
1 call to _amazons3_implode()
- amazons3_admin in ./
amazons3.admin.inc - Form API callback for the configuration form.
File
- ./
amazons3.admin.inc, line 217
Code
function _amazons3_implode($name) {
if ($name == 'amazons3_presigned_urls') {
$lines = array();
foreach (variable_get($name, array()) as $config) {
$lines[] = $config['timeout'] . '|' . $config['pattern'];
}
return implode("\n", $lines);
}
return implode("\n", variable_get($name, array()));
}