The link_field form element is very handy for custom forms... but the link title field assumes the presence of $instance['settings']['max_length'] to set the descriptive text "The link title is limited to @maxlength characters maximum." (and the actual maximum length). $instance doesn't exist unless you're using Field API.

Attached a trivial patch to fall back to a max length of 128.

Comments

ohthehugemanatee created an issue. See original summary.

renatog’s picture

Assigned: Unassigned » renatog
Status: Needs review » Reviewed & tested by the community
Issue tags: +ciandt-contrib
StatusFileSize
new1.12 KB

Thanks @ohthehugemanatee.

I uploaded a new patch in attachment because code was updated.

Regards.

  • RenatoG committed 69a4b1c on 7.x-1.x
    Issue #2566443 by ohthehugemanatee, RenatoG: Broken description text...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Commited in dev branch.

Good Work and Good Weekend.

Regards.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.