You are here

function uif_normalize_header in User Import Framework 7

Same name and namespace in other branches
  1. 6 uif.admin.inc \uif_normalize_header()

Normalize the header columns.

1 call to uif_normalize_header()
uif_validate_user_file in ./uif.admin.inc
Read the user import file and validate on the way.

File

./uif.admin.inc, line 301
Simple, extensible user import from a CSV file.

Code

function uif_normalize_header($header) {
  $header = array_map('trim', $header);
  $normal_header = array();
  foreach ($header as $column) {
    $normal_header[] = strtolower($column);
  }
  return $normal_header;
}