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

The biography Module


The name of our fictional website is "Philosopher Bios". So far, we have created a host of modules, but nothing related to the idea of a biography. In this chapter, we will create the biography module.

This module will define a new content type (sometimes called a node type) that will contain specialized fields for storing a simple biographical profile.

What should a biographical profile look like? Well, for us it will have the following fields:

  • The name of the person the biography is about

  • A brief summary of what makes that person notable

  • The date of birth and date of death

  • A history of the person

  • A list of notable works or achievements of that person

While we can use the default title and body fields available to all nodes, we will need to create additional fields for the rest of the data.