I ran into a problem where our theme overrode theme_links() to add some extra markup. This ended up breaking ctools drag and drop since it was using theme('links') and was not compatible with the js. (This was all in the context the Panels Display Edit)
This is obviously not just for the drag and drop functionality, but any javascript that is dependent on HTML that is rendered through theme(). We know, in the drupal world, theme() is there so users can change the html it generates so this will always happen.
I am not sure of the right solution, but I ended up creating this patch to use the default theme function.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ctools-592692.patch | 548 bytes | jonskulski |
Comments
Comment #1
jonskulski commentedComment #2
merlinofchaos commentedI agree, this has come up a couple of times. It should've occurred to me that the fix would be so simple, but it did not. Thanks.
Comment #3
merlinofchaos commentedOh, be sure to set 'needs review' when you add a patch in the future. It is more likely it'll get noticed.