Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Using the Drupal Render API

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:08
    In this chapter, we're going to take a look at using Drupal's Render API
  • 0:12
    or renderable arrays in order to create content and return that to Drupal to display on our pages.
  • 0:18
    We've seen it in action a little bit so far with the #type => markup
  • 0:22
    just to return simple markup for our page.
  • 0:25
    What we're going to do now is actually add a bunch of additional content
  • 0:28
    to the page that we created in the first menu system video,
  • 0:32
    to the page at /magic. It has this item on it already
  • 0:35
    where it says, "Truly, this is magical!"
  • 0:37
    We're also going to add an image and unordered list down at the bottom.
  • 0:41
    In addition to adding an image like this,

Using the Drupal Render API


This video walks through the basic use of Drupal 7's Render API for outputting content, and gives some hands-on experience in navigating and working with renderable arrays. We expand the Menu Magic module by creating several different kinds of page elements to show how renderable arrays work.

Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.