Closed (fixed)
Project:
Link
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2013 at 16:42 UTC
Updated:
7 Dec 2013 at 04:30 UTC
Jump to comment: Most recent
HI @all,
I just recognized that the 'field' variable is lost in theme_link_formatter_link_default() function after upgrade to 7.x-1.1. Please give it a try and dump all variables in this function. You will see that 'field' is empty... but it is filled in link_field_formatter_view().
So, am I doing something wrong, or this this a bug?!
Thanx in advance & cheers
hctom
Comments
Comment #1
hctomAny news on this topic?!
Comment #2
hctomOkay.. I found the problem. link_teme() does not implement the 'field' variable.
Add it like so:
For anyone else encountering the same Problem: You may implement a hook_theme_registry_alter in a custom module to fix that like so:
Cheers
hctom
Comment #3
jcfiala commentedUpdating this issue to remind me to look at it.
Comment #4
jcfiala commentedSo, okay, theme_link_formatter_link_default doesn't get the field data. I'm unclear on why it should get the data?
Comment #5
hctom... for better theming flexibility. Just imagine you would like to use some special markup for just one field on a specific entity bundle... With those variables passed, you will be able to do so.
Comment #6
jcfiala commentedAlright, this should be fixed in dev now.