Skip to content

Commit

Permalink
Issue #37: Update callback functions to entity_plus names
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Nov 29, 2024
1 parent 86a7225 commit 4b46774
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions profile.info.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.'),
Expand All @@ -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,
Expand All @@ -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',
);
Expand Down

0 comments on commit 4b46774

Please sign in to comment.