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.
FieldBlock module needs to be converted to use short array syntax as per new coding standard.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2864264-4.patch | 1.43 KB | bhanuprakashnani |
#2 | 2864264-2.patch | 1.43 KB | Pavan B S |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review
Comment #3
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedPatch does not apply.
Comment #4
bhanuprakashnani CreditAttribution: bhanuprakashnani at Google Summer of Code commentedI changed the code according to the new standards. I had a doubt whether to change the arrays like is_array() to is_[] or not. The normal arrays are changed. Please let me know. I ll learn how to do it accordingly. Thank you. Please review it and mention if any more changes are to be made.
Comment #5
nkoporecTested your patch and it's looking good, short array syntax is used.
Comment #6
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commented@bhanuprakashnani, no need to make this change. But to learn, I advise you to try to replace
is_array()
withis_[]
and as yourself what the difference is and why the code breaks. Or write a simple two line code that usesis_array()
and perform the replacement there. You will learn some PHP along the way.Comment #8
Sutharsan CreditAttribution: Sutharsan at LimoenGroen commentedThanks all!