You are here

function theme_user_import_username_errors in User Import 5.2

Same name and namespace in other branches
  1. 8 user_import.module \theme_user_import_username_errors()
  2. 5 user_import.module \theme_user_import_username_errors()
  3. 6.4 user_import.module \theme_user_import_username_errors()
  4. 6.2 user_import.module \theme_user_import_username_errors()
  5. 7.3 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()
1 theme call to theme_user_import_username_errors()
user_import_usernames_invalid in ./user_import.module

File

./user_import.module, line 983
Import users 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', $header, $errors);
  }
  return $output;
}