O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

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

Drupal 7 Render Arrays

In the case of our Recipe content type, it would be nice to wrap the prepTime, cookTime, and recipeYield fields with a border, and display that box inline with the image field. The manage display settings are not going to help us accomplish this, so it is time for some more custom development, and an introduction to Render Arrays. Render Arrays are a new page-building data structure introduced in Drupal 7 to make it easier for developers to manipulate the content of a Drupal page as late as possible in the rendering process. Render Arrays will allow us to manipulate the output of the core modules without hacking html fragments or writing complicated CSS. In this case, we will modify the Render Array of our Recipe nodes. ...

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