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

Picking up Where We Left Off


In the last chapter, we built a module that read data from a custom content type, and displayed it as block content. This module made use of the Quote content type that we created. In order to provide layout information for our new content type, we created a default theme as part of the module. That theme code generated the necessary HTML and CSS for displaying quotes.

Note

At the end of the last chapter, we overrode the module's default theme by adding a template to the Descartes theme. In this chapter, however, we will work on the default theme again. You will need to disable the philquotes-specific changes in the Descartes theme in order to work with the default theme again.

When our philquotes module is viewed as a block, a single quotation is displayed as the block's contents. The output looked somewhat as follows:

Now we will extend the philquotes module.

We will add features that make it possible to refresh the quotation without reloading the page. To do this...