This patch adds a setting for long urls so that if one is longer than the limit, the text in the link is truncted and '...' added to the end. Also, I added a 'title' attribute to links to allow hovering to see the full url.

CommentFileSizeAuthor
urlfilter.patch2.78 KBcrunchywelch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

geekarena’s picture

Thank you! I have been waiting for this for a long time. Now, if I just knew how to impliment a patch, I would be all set. Might future versions of urlfilter have this integrated?

deekayen’s picture

Assigned: Unassigned » deekayen
deekayen’s picture

Status: Needs review » Closed (fixed)

Committed to HEAD and DRUPAL-4-7 with a few of my own tweaks.

Steven’s picture

- Preg_replace/e is buggy. Avoid it at all costs
- Filter settings should be per format. See the hook_filter docs please.