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.
$parents is not used further, so simplify code by assigning array() directly to #parents rather than using an intermediate variable.
Reverse order of test for rebuilding $cache. Looking through the code in form.inc suggests that this function will be called more frequently without the refresh parameter set. Therefore we put the most common test (that is, whether $cache is set) first.
Comment | File | Size | Author |
---|---|---|---|
elementinfo.patch | 818 bytes | jvandyk | |
Comments
Comment #1
chx CreditAttribution: chx commentedI am OK with this patch.
Comment #2
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #3
(not verified) CreditAttribution: commented