$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.

CommentFileSizeAuthor
elementinfo.patch818 bytesjvandyk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

I am OK with this patch.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)