You are here

function theme_user_import_username_errors in User Import 7.3

Same name and namespace in other branches
  1. 8 user_import.module \theme_user_import_username_errors()
  2. 5.2 user_import.module \theme_user_import_username_errors()
  3. 5 user_import.module \theme_user_import_username_errors()
  4. 6.4 user_import.module \theme_user_import_username_errors()
  5. 6.2 user_import.module \theme_user_import_username_errors()
  6. 7 user_import.module \theme_user_import_username_errors()
  7. 7.2 user_import.module \theme_user_import_username_errors()

File

./user_import.module, line 524
Import or update users with data from a comma separated file (csv).

Code

function theme_user_import_username_errors($errors) {
  if (empty($errors)) {
    $output = '<p><strong>' . t('All usernames are OK.') . '</strong></p>';
  }
  else {
    $header = array(
      t('User ID'),
      t('Email'),
      t('Username'),
      t('Error'),
    );
    $output = theme('table', array(
      'header' => $header,
      'errors' => $errors,
    ));
  }
  return $output;
}