[development] Views2 - change filter label programmatically

Tomáš Fülöpp (vacilando.org) tomi at vacilando.org
Tue Oct 13 10:14:35 UTC 2009


Hi,

Spent ages trying to figure out how to do something supposedly as simple as
changing the label of an existing exposed form name from my module.

For filter called 'names', in
MYMODULE_views_pre_render()
I set the label this way:

$view->display['page_1']->display_options['filters']['names']['expose']['label']
= 'NEWNAME';

When I check it with
drupal_set_message(print_r($view));
it is properly set.

But it does not appear on the page. Caches emptied etc. What am I missing?

I'd really like to learn how to do this using Views2 API rather than via a
theme function.

I'll be so thankful for any clues..

vacilando
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20091013/788d9a09/attachment.html 


More information about the development mailing list