Created
January 10, 2015 23:28
-
-
Save jpamental/bc17c923142629b32f1d to your computer and use it in GitHub Desktop.
Simple function to go in your template.php file to keep Drupal from inserting height/width into image tags.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function themename_preprocess_image(&$variables) { | |
foreach (array('width', 'height') as $key) { | |
unset($variables[$key]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment