Closed (fixed)
Project:
Linkit
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2016 at 13:39 UTC
Updated:
27 Oct 2021 at 14:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joelstein commentedHere's a patch which adds Linkit support for any eligible element a #linkit array is attached. For example, you can now do something like this:
You can specify the 'profile', whether or not it's 'enabled', the 'button_text', and override the 'js_setttings' array.
No other changes were needed. I tested that normal Field API support still works for the default field types shipped with Linkit.
Comment #3
joelstein commentedOops, I left one hard-coded testing thing in there. Here's a patch that should work. :)
Comment #4
joelstein commentedAny chance we can commit this? It's been helpful for custom modules we write to add the awesome Linkit functionality to places where it's currently missing but very helpful, such as in Ctools modals with Fieldable Panels Panes and Panels IPE, and also in coordination with #2514928: Support for default drupal menu system for menu link support.
Comment #6
anonThanks for patch.
Comment #7
joelstein commentedThanks a bunch, I appreciate it.
Comment #9
joseph.olstadwas this ever ported to the Drupal 8 version of linkit?