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 emailusers Module


The module we will create will provide an administration interface. It will make it easy for administrators to send a user an email message directly from the user's profile. This sort of module might be helpful in cases where administrators occasionally need to communicate with specific users through Drupal.

Note

There are already a host of mail-related modules available for Drupal. In fact, the Contact module bundled with Drupal provides similar functionality for user-to-user communication. (Ours is focused on administrator-to-user email). You can also browse the contributed modules by going to the Drupal module site and clicking on the Mail category: http://drupal.org/project/Modules/category/66

Given its function, we will name this module emailusers. We want this module to support the following features:

  • An administrator will be able to send messages through a form-based interface.

  • The form should be linked to the user's profile.

  • Users who are not "user administrators...