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.
Currently, the Site Logo content type creates the <img>
tag HTML, rather than using theme('image')
. The latter allows themes to alter the image with hook_preprocess_image().
This is a simple change from:
$image = '<img src="' . $logo . '" alt="' . t('Home') . '" />';
to:
$image = theme('image', array('path' => $logo, 'alt' => t('Home')));
Comment | File | Size | Author |
---|---|---|---|
#2 | ctools-site-logo-theme-image-2606518-2.patch | 660 bytes | joelstein |
Comments
Comment #2
joelstein CreditAttribution: joelstein commentedComment #3
joelstein CreditAttribution: joelstein commentedComment #4
carsonwThis is a super simple commit that works on many websites that we've patched. Let's get 'er included!
Comment #5
rivimeySeems good to me. Proposed for 1.13
Comment #7
japerry+1 to less html in modules ;) Fixed!