function uif_add_line_number in User Import Framework 7
Same name and namespace in other branches
- 6 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 357 - 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;
}
}