function _filefield_source_remote_filename in FileField Sources 7
Same name and namespace in other branches
- 6 sources/remote.inc \_filefield_source_remote_filename()
Get/set the remote file name in a static variable.
2 calls to _filefield_source_remote_filename()
- filefield_source_remote_value in sources/
remote.inc - A #filefield_value_callback function.
- _filefield_source_remote_parse_header in sources/
remote.inc - Parse cURL header and record the filename specified in Content-Disposition.
File
- sources/
remote.inc, line 295 - A FileField extension to allow referencing of existing files.
Code
function _filefield_source_remote_filename($curl_filename = NULL) {
static $filename = NULL;
if (isset($curl_filename)) {
$filename = $curl_filename;
}
return $filename;
}