Created
September 11, 2014 23:33
-
-
Save dirtystylus/34a65ab232ac21222380 to your computer and use it in GitHub Desktop.
Drupal 7: Remove Image Width and Height
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 mytheme_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