You are here

function role_expire_entity_extra_field_info in Role Expire 8

Same name and namespace in other branches
  1. 2.x role_expire.module \role_expire_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

./role_expire.module, line 307
Role Expire module.

Code

function role_expire_entity_extra_field_info() {

  // Add pseudo field.
  $fields['user']['user']['display']['role_expire'] = [
    'label' => t('Role expiration'),
    'weight' => 1000,
  ];
  return $fields;
}