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.
This came up while working on #1939088: Convert theme_meter() to Twig, after applying the patch there which replaces theme_meter() with a Twig template.
Per http://api.drupal.org/api/drupal/developer%21topics%21forms_api_referenc... the class should be an array.
Without this patch I got a fatal error when this code in template_preprocess was hit:
// Initialize html class attribute for the current hook.
$variables['attributes']['class'][] = drupal_html_class($hook);
Comment | File | Size | Author |
---|---|---|---|
#1 | poll-1966090-1.patch | 406 bytes | star-szr |
Comments
Comment #1
star-szrComment #3
adammaloneThanks for the pick up and patch - fixed.
Comment #4
star-szrThank you very much for the quick fix, this will make our manual testing much easier.
Comment #5.0
(not verified) CreditAttribution: commentedUpdate report