[development] Views 3 custom handler (was Custom Handlers for Views 2)

jeff at ayendesigns.com jeff at ayendesigns.com
Sun Nov 21 23:20:23 UTC 2010

I will write it up. That said, I got it working this afternoon! I'm a 
little unsure about one part though, where I pluck the field's value 
from the value array. It seems that there should be a more elegant way 
of walking to the correct index than this:


and in particular, the ['und'][0]['safe_value'] part of it. In my case, 
it is predictable that there will only be one instance of the field in 
the row, so the [0] is ok, otherwise I'd loop. I guess it's the ['und'] 
that is bothering me, especially not knowing what 'und' indicates.

On 11/21/2010 01:34 PM, Earl Miles wrote:
> This is an interesting side effect of field API, and you're right. It
> will be more difficult to make what used to be simple changes. You are
> blazing new territory with this, and what you are doing may be an
> uncommon but important need for advanced Views users. Please be sure to
> write up what you have discovered so that we can document this and
> hopefully the next person to do it doesn't have to spend weeks figuring
> out the levels of abstraction to make deep modifications to field api
> fields.

More information about the development mailing list