From 4b467741f216b6fe1406eec94bf536f6fa6975f8 Mon Sep 17 00:00:00 2001 From: indigoxela Date: Fri, 29 Nov 2024 09:54:27 +0100 Subject: [PATCH 1/2] Issue #37: Update callback functions to entity_plus names --- profile.info.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/profile.info.inc b/profile.info.inc index f2936d1..07433ef 100644 --- a/profile.info.inc +++ b/profile.info.inc @@ -16,15 +16,15 @@ class ProfileMetadataController extends EntityDefaultMetadataController { $properties['label'] = array( 'label' => t('Label'), 'description' => t('The profile label.'), - 'setter callback' => 'entity_property_verbatim_set', + 'setter callback' => 'entity_plus_property_verbatim_set', 'setter permission' => 'administer profiles', 'schema field' => 'label', ); $properties['type'] = array( 'type' => 'profile_type', - 'getter callback' => 'entity_property_getter_method', - 'setter callback' => 'entity_property_verbatim_set', + 'getter callback' => 'entity_plus_property_getter_method', + 'setter callback' => 'entity_plus_property_verbatim_set', 'setter permission' => 'administer profiles', 'required' => TRUE, 'description' => t('The profile type.'), @@ -36,7 +36,7 @@ class ProfileMetadataController extends EntityDefaultMetadataController { 'label' => t("User"), 'type' => 'user', 'description' => t("The owner of the profile."), - 'getter callback' => 'entity_property_getter_method', + 'getter callback' => 'entity_plus_property_getter_method', 'setter callback' => 'entity_property_setter_method', 'setter permission' => 'administer profiles', 'required' => TRUE, @@ -47,7 +47,7 @@ class ProfileMetadataController extends EntityDefaultMetadataController { 'label' => t("Date created"), 'type' => 'date', 'description' => t("The date the profile was created."), - 'setter callback' => 'entity_property_verbatim_set', + 'setter callback' => 'entity_plus_property_verbatim_set', 'setter permission' => 'administer profiles', 'schema field' => 'created', ); From b6e09b9899b928a8340c7d51e6596abcc521ec45 Mon Sep 17 00:00:00 2001 From: indigoxela Date: Fri, 29 Nov 2024 09:58:02 +0100 Subject: [PATCH 2/2] Another callback needs renaming --- profile.info.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.info.inc b/profile.info.inc index 07433ef..603f707 100644 --- a/profile.info.inc +++ b/profile.info.inc @@ -37,7 +37,7 @@ class ProfileMetadataController extends EntityDefaultMetadataController { 'type' => 'user', 'description' => t("The owner of the profile."), 'getter callback' => 'entity_plus_property_getter_method', - 'setter callback' => 'entity_property_setter_method', + 'setter callback' => 'entity_plus_property_setter_method', 'setter permission' => 'administer profiles', 'required' => TRUE, 'schema field' => 'uid',