You are here

function uif_plus_process_user_picture in User Import Framework Plus 7

Process import of user pictures

Parameters

object $account:

array $field_info:

string $value:

Return value

object $picture - File object of uploaded picture

1 string reference to 'uif_plus_process_user_picture'
uif_plus_uif_supported_fields in ./uif_plus.module
Implements hook_uif_supported_fields().

File

./uif_plus.module, line 297
Advanced user import from a CSV file.

Code

function uif_plus_process_user_picture($account, $field_info, $value = '') {
  if (drupal_strlen($value)) {
    $file = uif_plus_upload_file($account, $field_info, $value);
    return $file;
  }
}