function regcode_entity_extra_field_info in Registration codes 8
Implements hook_entity_extra_field_info().
File
- ./
regcode.module, line 52 - Main functionality and hooks of regcode module.
Code
function regcode_entity_extra_field_info() {
$extra = [];
$config = \Drupal::config('regcode.settings');
$extra['user']['user']['form']['regcode'] = [
'label' => $config
->get('regcode_field_title'),
'description' => $config
->get('regcode_field_description'),
'weight' => 10,
'visible' => TRUE,
];
return $extra;
}