You are here

function hook_bulk_user_registration_extra_fields in Bulk User Registration 8

Provide names of additional fields for import by bulk user registration.

A field name is the column header text in the CSV file.

Return value

array Array of field names.

2 invocations of hook_bulk_user_registration_extra_fields()
BulkUserRegistration::getFieldNames in src/BulkUserRegistration.php
Get CSV field names.
SampleCsv::getFieldNames in src/Controller/SampleCsv.php
Returns the CSV field names.

File

./bulk_user_registration.api.php, line 18
Hooks provided by the Bulk User Registration module.

Code

function hook_bulk_user_registration_extra_fields() {

  // Make sure you store the imported data of these field into the user object
  // in an implementation of hook_bulk_user_registration_extra_fields().
  return [
    'realname',
    'identifier',
  ];
}