Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Pamental jpamental

View GitHub Profile
@jpamental
jpamental / Drupal_IMG_WxH_Remove
Created Jan 10, 2015
Simple function to go in your template.php file to keep Drupal from inserting height/width into image tags.
View Drupal_IMG_WxH_Remove
function themename_preprocess_image(&$variables) {
foreach (array('width', 'height') as $key) {
unset($variables[$key]);
}
}