Chapter 10. Working with Blocks

Blocks are snippets of text or functionality that can be placed in the regions defined in your template. Blocks can be anything from a single node, a list of nodes, a calendar, a video, a form, an online poll, a chat window, a feed of Facebook status updates, or virtually anything else you can dream up. When I talk to clients about blocks, they often respond with "Oh, you mean a block is just a widget," which is often the common term used outside of the sphere of Drupal for things that are represented as blocks in Drupal. In this chapter, I'll show you how to create custom blocks and use them on your Drupal web site.

What Is a Block?

A block is essentially a stand-alone container that can be used to house virtually ...

Get Pro Drupal 7 Development, Third Edition 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.