The Definitive Guide to Drupal 7

Summary

Throughout this chapter we’ve covered more of the many different methods you can use to bend Drupal themes to your will. We’ve covered almost everything you’ll need to know to create truly awesome and sustainable themes, including how to:

  • Find the variables that are available to you in the theme layer.
  • Understand and use preprocess and process functions.
  • Use and alter contents of render arrays.
  • Theme forms with templates, theme functions, and alter hooks.
  • Manage CSS and JavaScript files in your theme.
  • Work with base and subthemes.

It’s easy to become overwhelmed with Drupal’s theme layer in the beginning. Just remember that your themes can be as simple or as complex as you need them or want to be. We hope that you’ll take this knowledge and use it to create awesome Drupal themes, and contribute them back to the community.

You are reading content from two chapters on Theme Development from The Definitive Guide to Drupal 7, written by Jacine Luisi and published by Apress on July 19, 2011. All rights reserved.