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.
When I was doc'ing the #tree calculations with webchick I have discovered that the current code can be squashed quite nicely. It's not like those $foo = $foo ? $foo : $bar terniary operators, this one makes sense. I even commented it.
Comment | File | Size | Author |
---|---|---|---|
#5 | form_tree_simplify_1.patch | 1.45 KB | chx |
#1 | form_tree_simplify_0.patch | 1.61 KB | chx |
form_tree_simplify.patch | 1.03 KB | chx | |
Comments
Comment #1
chx CreditAttribution: chx commentedI said "I commented it" -- just uploaded the wrong patch. And a minor format change in form.inc (hail feature creep :) )
Comment #2
chx CreditAttribution: chx commentedapplies (with some offset but still), works. no functionality change just code cleanup.
Comment #3
Dries CreditAttribution: Dries commentedEven with a comment, it's pretty hard to grasp what is going on ...
Comment #4
chx CreditAttribution: chx commentedWhat about comitting it and I will --I promise-- get hold of Angie later and work a nicer code comment? :)
Comment #5
chx CreditAttribution: chx commentedI got hold of her :)
Comment #6
chx CreditAttribution: chx commentedAnd it's in.
Comment #7
(not verified) CreditAttribution: commented