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.
Can this module be modified (hook?) to check if the field already exists?
Comments
Comment #1
jcfiala CreditAttribution: jcfiala commentedYou really need to provide a lot more information about this ticket. I have no idea what you mean or want.
Comment #2
netentropy CreditAttribution: netentropy commentedI am trying to think of another way to ask it.
I have a node that allows you to enter a link. I enter mylink.com and save it.
Another user later goes to add the same link. Is it possible to return a message saying, "This link has already been added"
Does that help?
Comment #3
jcfiala CreditAttribution: jcfiala commentedOkay, so you want to check if a link value already exists when a link is added.
Do you want it to only check on this entity? On this entity bundle? On this entity type? On all instances of this field? On all instances of the link field throughout the site?
I'll admit that this seems to be a pretty corner case for the module, although it doesn't seem like it would be that hard to implement as a module in itself, really.