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

Time for action — creating the wrapper with display suite

We are going to once again undo something that we have already done, and redo it another way. In order to illustrate that writing the custom code is not always the best route to take to achieve certain functionality for our site, we are going to replace our custom implementation of hook_preprocess_node with the built-in capabilities of the field group module.

  1. Once again, we must start by undoing what we have already done. So, in Aptana Studio, open the preprocess-node.inc file in our /sites/all/themes/d7dev_theme/preprocess directory.
  2. Put a /* before our d7dev_theme_alpha_preprocess_node function and a */ after it. This is referred to as "commenting out the code", so this function will not ...

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