Advertisement
nucklear

Drupal views replace ANY to ALL in exposed filter,

May 1st, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function YOURMODULE_form_views_exposed_form_alter (&$form, $form_state) {
  2.  
  3.     foreach($form as $key => &$value) {
  4.  
  5.     if(isset($value['#options']['All'])) {
  6.  
  7.     $label = ucwords(strtolower(str_replace('_', ' ', $key)));
  8.  
  9.     $value['#options']['All'] = t('All');
  10.     }
  11.    
  12.     }
  13.  
  14.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement