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.
The task here is to allow icons to be overridden in the theme, and that means the theme functions in OTW need to be rewritten.
Comment | File | Size | Author |
---|---|---|---|
#4 | custom_images_path_setting-1678872-4.patch | 2.03 KB | greenSkin |
#1 | easier_to_override_icons-1678872-1.patch | 4.05 KB | jenlampton |
Comments
Comment #1
jenlamptonOkay, here's a rewrite of the theme functions that make the icons easier to override.
Comment #2
jenlamptonComment #4
greenSkin CreditAttribution: greenSkin commentedI like that you've added the theme functions, definitely makes things easier to alter. I'd like to offer one more patch against the 7.x-1.x version that simplifies using custom images without having to write any code. I've added a textfield to the settings fieldset in the block's configuration that allows setting the images folder path. Leaving it blank will default to the images folder within the module.
Comment #5
jenlamptonI think that's a great idea, can you open a new issue and attach the patch there (since this is a different request)? Thanks!