B.3. Step 3: Creating the Business Objects

Normally in Drupal, you click the ubiquitous user login block to either log in or register to become a new user. Given the objectives here, however, you can do away with the regular user login/registration block and configure Drupal so that only the translator team leader can register users. Instead of registering directly, clients will fill out a Client Application form, translators will fill out a Translator Application form, and the translator team leader will then manually create the users, assign them to the appropriate roles, and send them notifications with login instructions. Of course, with the use of additional modules, this process could be automated, but in this appendix, the aim is to provide an example based mainly on the Drupal core.

You will need a total of three content types: the two kinds of applications with their corresponding fields and the translation content type itself.

To create the translation content type, do the following:

  1. Go to Administer Content Management Content Types, and click the Add Content Type link.

  2. Enter Translation in the Name field and translation in the Type field. Enter Create a multilingual text to be translated in the Description field. In the Submission Form Settings section, leave the Body ...

Get Cracking Drupal®: A Drop in the Bucket now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.