function uif_uif_validate_header in User Import Framework 6
Same name and namespace in other branches
- 7 uif.admin.inc \uif_uif_validate_header()
Implementation of hook_uif_validate_header().
File
- ./
uif.admin.inc, line 283 - Simple, extensible user import from a CSV file.
Code
function uif_uif_validate_header($header) {
foreach ($header as $column) {
if ('email' === $column) {
$email_found = TRUE;
}
}
if (!$email_found) {
return t('I can find no email column in the import file.');
}
}