5 Feb
2011
5 Feb
'11
12:59 a.m.
On 2/4/2011 3:58 PM, Earl Miles wrote:
On 2/4/2011 11:03 AM, jeff@ayendesigns.com wrote:
When theming a views field in a module (i.e. building the field-level views template into the module) which arguments structure is used: display, style or row?
None of the above. It's this, from views_theme():
$hooks['views_view_field'] = $base + array( 'pattern' => 'views_view_field__', 'arguments' => array('view' => NULL, 'field' => NULL, 'row' => NULL), );
It should be really really really rare to need to theme a field from a module these days. With the addition of the semantic views stuff to control markup, about the only thing you need to theme fields for is when you need to write logic to change the field presentation based on other data.