Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By peterpan1972 on
hello, I can not add the class to the block filter shown in the template Bartik, what is wrong?
function bartik_views_exposed_form_alter(&$form, $form_state) {
// change date format example from a field called 'date_filter'
$form['views_exposed_form']['#attributes']['class'][] = 'test';
}
Comments
Is this what are you looking
Is this what are you looking at? : https://www.drupal.org/node/320992
Thanks,
Preksha