From 8036841b7202ac7715f01fc8753941e965dcfd5d Mon Sep 17 00:00:00 2001 From: golddragon007 Date: Fri, 26 Jun 2020 13:23:45 +0200 Subject: [PATCH] Issue #108: Make custom field configurable updated for 1.3+. --- .../oe_authentication_user_fields.module | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/oe_authentication_user_fields/oe_authentication_user_fields.module b/modules/oe_authentication_user_fields/oe_authentication_user_fields.module index 84217cf..a6dd5f5 100644 --- a/modules/oe_authentication_user_fields/oe_authentication_user_fields.module +++ b/modules/oe_authentication_user_fields/oe_authentication_user_fields.module @@ -53,8 +53,14 @@ function oe_authentication_user_fields_entity_base_field_info(EntityTypeInterfac ]) ->setDisplayOptions('form', [ 'weight' => $weight, - 'region' => 'content', - ]); + 'region' => 'disabled', + ]) + ->setDisplayOptions('view', [ + 'weight' => $weight, + 'region' => 'disabled', + ]) + ->setDisplayConfigurable('form', TRUE) + ->setDisplayConfigurable('view', TRUE); } return $fields; }