Skip to content

Commit

Permalink
Merge pull request #38 from indigoxela/37-callbacks
Browse files Browse the repository at this point in the history
Issue #37: Update callback functions to entity_plus names
  • Loading branch information
bugfolder authored Dec 2, 2024
2 parents 86a7225 + b6e09b9 commit f28ec61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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,8 +36,8 @@ class ProfileMetadataController extends EntityDefaultMetadataController {
'label' => t("User"),
'type' => 'user',
'description' => t("The owner of the profile."),
'getter callback' => 'entity_property_getter_method',
'setter callback' => 'entity_property_setter_method',
'getter callback' => 'entity_plus_property_getter_method',
'setter callback' => 'entity_plus_property_setter_method',
'setter permission' => 'administer profiles',
'required' => TRUE,
'schema field' => 'uid',
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 f28ec61

Please sign in to comment.