There is a little mismatch of brackets which is corrected in the attached patch.
Patch looks good, but doesn't apply. Can you re-roll?
Patch rerolled on the latest dev release.
Thank you @jurgenhaas, second version committed to dev
Automatically closed - issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.