function uif_plus_normalise_filename in User Import Framework Plus 7
Helper function to remove a slash from the back of a filename
Parameters
string $filename:
Return value
string
1 call to uif_plus_normalise_filename()
- uif_plus_upload_file in ./
uif_plus.module - Handle file uploads for image and file fields
File
- ./
uif_plus.module, line 209 - Advanced user import from a CSV file.
Code
function uif_plus_normalise_filename($filename) {
if ($filename[0] == DIRECTORY_SEPARATOR) {
$filename = drupal_substr($filename, 1);
}
return $filename;
}