O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — creating a programmatic custom image style

Now, we will see how you add a custom image style with code.

  1. The first thing we need to do is delete the small image style that we just created. So, open our d7dev site in your favorite browser, click on the Configuration link in the Admin toolbar, and then click on the Image styles link under the Media section.
  2. Once the Image styles administrative page has loaded, click on the delete link for the small image style that we just added.
  3. Next, on the Optionally select a style before deleting small page, leave the default value for the Replacement style select list to No replacement, just delete, and click on the Delete button.
  4. Now that we have cleared the way to replace our custom image styles ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required