Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Are people interested in a patch to allow a description in addition to the wishlist title? So people can have a message associated with their wish list that is displayed when viewed.
I need to implement this functionality, and seems to me useful to other people as well.
Comments
Comment #1
berenddeboer CreditAttribution: berenddeboer commentedComment #2
naveenvalechaAdded parent issue.
Comment #3
naveenvalechaPatch with the description field.Lemme see about jay suggestions as well.
Comment #4
naveenvalechaRerolled the patch to display the description text above the expiration text.
Comment #5
naveenvalechaAssigning to Jay to review and come up with this comments.
Comment #6
naveenvalechaComment #7
berenddeboer CreditAttribution: berenddeboer commentedAlmost there I think. My changes:
Comment #8
berenddeboer CreditAttribution: berenddeboer commentedOops, field handler for new description field was missing.
Comment #9
naveenvalechaNeed to add the details regarding the column description as in #4.
@Jay,
told to jay to share his thoughts.
Comment #10
jaykainthola CreditAttribution: jaykainthola commented@naveenvalecha, Yes, i think, we should include the description for the wishlist.
Thanks,
Jayendra Kumar
Comment #11
naveenvalechagot the inputs from @jay above.Assigned to myself. I might reroll it tonight.
Comment #12
naveenvalechaAttached a rerolled patch.
Comment #13
naveenvalechaPatch added and comitted to 7.x-1.x.
Comment #15
naveenvalechaComment #16
berenddeboer CreditAttribution: berenddeboer commentedThe description was included, it was done by retrieving the entire field definition from the schema, so we didn't repeat ourselves:
See the reference to $schema?
Now the code includes the $schema variable, but that isn't used. So you either need to remove the $schema variable or call db_add_field() along the lines I proposed.
Comment #18
naveenvalechaRemoved the $schema variable.Thanks for pointing!
Comment #19
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedPatch rolled for 6.x-1.x-dev
Comment #20
naveenvalechaPatch looks ready to go.
Comment #21
naveenvalechaNeeds to remove the description variable in hook_uninstall.Rest seems fine to me.
Comment #24
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedNaveen, We ain't adding any description related variable in 6.x, we are adding variable for default title and allow anonymous users to create wishlist. We can take this up in a separate or related issue.
Comment #25
naveenvalechaohhhkk let's go it with the current one.
Comment #27
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedPatch committed. Marking it as Fixed.