O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a biography field to the user profile

In its default configuration, the Drupal user profile features only a few fields such as Username, Password, E-mail, and Picture. There are many potential use cases where you would want to add more fields. Drupal makes it very easy for us to add additional fields to the user profile, and it's done in much the same way as you would edit a content type. In this recipe, we will be adding a new Long text field to the user profile to provide the user with the option of adding a biography.

Tip

Adding too many fields to a user profile can have performance implications. The user object is always loaded, and with it, any extra fields added to it.

Getting ready

To complete this recipe you will need to have completed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required