Book Image

Learning Drupal 6 Module Development

Book Image

Learning Drupal 6 Module Development

Overview of this book

Table of Contents (14 chapters)
Learning Drupal 6 Module Development
Credits
About the Author
About the Reviewers
Preface

Theming Biography Content


We are at the last step of developing our custom content type. The code presented in the last section handled the process of retrieving the information from the database, preparing it, and then handing it off to the theme layer.

Here, we just need to implement the theme layer.

We took our first look at coding themes in Chapter 3. Since then, we have interacted with the theme layer in subsequent chapters. Once again we will make use of the theme layer. We will provide a default theme for our content type.

Actually, we will be doing a little less than that. We will provide a default theme only for the custom fields of our biography content type. The standard node fields already have theme support, and there is no particular reason why we (as module developers) would want to override those. After all, we are only providing defaults. We'll leave more serious theming to the theme developers.

This time around, we are going to use a template for our theme instead of writing...