Is there a way to add a custom validation for links?

For example I'd like to add a link field where only facebook links are permitted, so I think about a rule "url contains -> https://www.facebook.com"

Comments

smurfxx created an issue. See original summary.

jcfiala’s picture

Status: Active » Closed (works as designed)

You should check out the http://drupal.org/project/advanced_link module, we have a link to it from the front page that it might handle this situation.

Given that I think the other module will help you, I'm going to mark this as fixed for now.