function coder_upgrade_file_key in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/conversions/call.inc \coder_upgrade_file_key()
Returns the new file key parameter.
Parameters
string $key:
Return value
string
1 call to coder_upgrade_file_key()
- coder_upgrade_upgrade_call_file_scan_directory_alter in coder_upgrade/
conversions/ call.inc - Implements hook_upgrade_call_file_scan_directory_alter().
File
- coder_upgrade/
conversions/ call.inc, line 1547 - Provides conversion routines applied to function calls.
Code
function coder_upgrade_file_key($key) {
switch ($key) {
case "'filename'":
return "'uri'";
case "'basename'":
return "'filename'";
case "'name'":
return "'name'";
default:
return "'uri'";
}
}