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.
Using shorthand color values, such as #F00 instead of #FF0000, will cause affectFavicon() to throw an error, specifically the issue being that splitColor doesn't seem to be able to handle this format.
The error it gives is:
Cannot call method 'join' of null
Comment | File | Size | Author |
---|---|---|---|
#3 | 1960664-use-long-color-names.patch | 11.11 KB | Stevel |
Comments
Comment #1
Stevel CreditAttribution: Stevel commentedThis patch changes all colors used to be 6 characters and to lowercase (since the colorpicker also uses lowercase).
Should existing config be updated as well to migrate from 3 to 6-character colors?
Comment #2
e0ipsoLooks good! I'll be merging this asap.
Comment #3
Stevel CreditAttribution: Stevel commentedThis patch adds a validation function to the settings form to ensure that the color format is correct.
Comment #4
Stevel CreditAttribution: Stevel commentedNote: don't use the file listed in this comment! Use the one from the recent files above (or from comment #3)
Comment #5
e0ipsoCommited and pushed to dev.
Comment #6
e0ipso