It's basically in the title, but here's the question:
I'm trying to create a way to allow the user looking at a view to control which columns are visible. This isn't very hard, provided I can get called in the right place. Specifically, I need to be called in three places:
- in some kind of configuration pane
- in the exposed form
- in the pre_render function
Both field handlers and filter handlers get a configuration pane. But only filter handlers get to affect the exposed form, and only field handlers get access to the pre_render function.
Although I might be able to get something working by combining a handler with various hooks, I would prefer everything to be together.
Does anyone know how to convince Views to either call a field handler when rendering the exposed form, or to call a filter handler for the pre_render function?