function uif_add_line_number in User Import Framework 6
Same name and namespace in other branches
- 7 uif.admin.inc \uif_add_line_number()
Prepend the line number on the error.
1 call to uif_add_line_number()
- uif_validate_user_file in ./
uif.admin.inc - Read the user import file and validate on the way.
File
- ./
uif.admin.inc, line 307 - Simple, extensible user import from a CSV file.
Code
function uif_add_line_number(&$errors, $line) {
foreach ($errors as &$error) {
$error = t('Error on row !line: ', array(
'!line' => $line,
)) . $error;
}
}