You are here

15 November 2013

This snippet shows you how to change date format for better exposed filters in Drupal 7. I was not able to use strtotime with the default setting.

Source code viewer
  1. /**
  2.  * Implements hook_js_alter().
  3.  */
  4. function HOOK_js_alter(&$js) {
  5. $js['settings']['data'][] = array(
  6. 'better_exposed_filters' => array('bef_dateformat' => 'dd-mm-yy'),
  7. );
  8. }
Programming Language: PHP