You are here

function user_import_profile_string in User Import 5

Same name and namespace in other branches
  1. 5.2 user_import.module \user_import_profile_string()

File

./user_import.module, line 1623
Import users from a comma separated file (csv).

Code

function user_import_profile_string($prefix = ',') {
  if (!module_exists('profile')) {
    return;
  }
  $profile_fields = _user_import_profile('fid', 'name');
  if (!empty($profile_fields)) {
    $profile_string = ', !' . implode($prefix . ' !', $profile_fields);
  }
  return $profile_string;
}