Views2 - change filter label programmatically
13 Oct
2009
13 Oct
'09
12:14 p.m.
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
6095
Age (days ago)
6095
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tomáš Fülöpp (vacilando.org)