function uif_plus_process_image_field in User Import Framework Plus 7
Process import of image fields.
Parameters
object $account:
array $field_info:
string $value:
Return value
int - File ID of uploaded file
1 string reference to 'uif_plus_process_image_field'
- uif_plus_uif_supported_fields in ./
uif_plus.module - Implements hook_uif_supported_fields().
File
- ./
uif_plus.module, line 312 - Advanced user import from a CSV file.
Code
function uif_plus_process_image_field($account, $field_info, $value) {
if (drupal_strlen($value)) {
$file = uif_plus_upload_file($account, $field_info, $value);
return $file->fid;
}
}