2017-08-12 drupal►drupal 7 Create image styles in bulk for Drupal 7 Since we use responsive images a lot in Drupal, we use the following to create image styles in bulk. 12345678910111213141516171819202122232425262728293031323334353637383940/** * Implements hook_image_default_styles(). */function MY_MODULE_image_default_styles() { $styles = array(); $widths = array( 200, 320, 440, 640, 720, 960, 1024, 1280, 1440, 1600, 1800, 2000, 2200, ); foreach ($widths as $width) { $styles['w' . $width] = array( 'label' => 'w' . $width, 'effects' => array( 1 => array( 'name' => 'image_scale', 'data' => array( 'width' => $width, 'height' => '', 'upscale' => 0, ), 'weight' => 1, ), ), ); } return $styles;} newer Easy chat integration for Drupal 7 older Enumerate used font families and sizes