Skip to content

Instantly share code, notes, and snippets.

@vkareh
Created Feb 22, 2013
Embed
What would you like to do?
function MODULE_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'views_exposed_filters') {
$form['field_date_value_year']['#attributes']['autocomplete'] = 'off';
$form['field_date_value_month']['#attributes']['autocomplete'] = 'off';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment