[development] D6 Theming a views field in a module
Earl Miles
merlin at logrus.com
Fri Feb 4 23:59:30 UTC 2011
On 2/4/2011 3:58 PM, Earl Miles wrote:
> On 2/4/2011 11:03 AM, jeff at 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.
More information about the development
mailing list