[development] Hooking views_data_alter

jeff at ayendesigns.com jeff at ayendesigns.com
Thu Oct 28 04:20:14 UTC 2010


Soooo frustrated! The only portions of the array for this field (a 
generic field added to a content type) that have handlers are for filter 
and argument ,not field, aside from the entity_id section, which I've 
tried already. I tried $data[field_data_field_test][field_test_value] 
section, because it seemed a logical place, and tried using 
[field][handler] within it, thinking that it would get created, but no.  
I have found a handful of modules that use the hook, and handful of 
blogs online, but every one seems to be for a different situation than 
simply wanting to override the field (not filter or argument) handler 
for a content type field.

On 10/27/2010 06:40 PM, jeff at ayendesigns.com wrote:
> Still trying to get this field handler working. Not hooking 
> views_data_alter with the correct $data index.
>
>
> When I used
>
>
> $data[field_data_field_test] [entity_id] [field] [handler]
>
>
> the options form part worked (options listed, etc.), but the render 
> function was receiving the entity value and not the field data.
>
>
> What is the correct reference?
>
>
> Jeff
>
>


More information about the development mailing list