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.
We have to convert the module to short array as per new coding standard
Comment | File | Size | Author |
---|---|---|---|
#3 | jquery_colorpicker_array_search_results.png | 50.61 KB | dhruveshdtripathi |
#2 | 2881325-2.patch | 1.38 KB | Pavan B S |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review
Comment #3
dhruveshdtripathi CreditAttribution: dhruveshdtripathi at DevsAdda commentedPatch applied cleanly. All the arrays converted to short array syntax. Checked it manually. As you can see in the attached png file, earlier there were 5 array declarations, after applying patch that is 1. That 1 array declarations are in_array.
Good work!
Comment #4
Jaypan CreditAttribution: Jaypan commentedThanks for your work, unfortunately I converted the entire module to coder standards, including the array syntax, before I saw this thread, so the patch doesn't work anymore, and with nothing to push, there is nothing to credit you with. I do appreciate your efforts though.