You are here

function realname_entity_extra_field_info in Real Name 8

Same name and namespace in other branches
  1. 2.x realname.module \realname_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

./realname.module, line 41
Provides token-based name displays for users.

Code

function realname_entity_extra_field_info() {
  $fields['user']['user']['display']['realname'] = [
    'label' => t('Real name'),
    'description' => t('Real name'),
    'weight' => -1,
    'visible' => FALSE,
  ];
  return $fields;
}