Overview of the Drupal menu system

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 video, we're going to take a first look at integrating with Drupal's menu system
  • 0:12
    via hook_menu.
  • 0:14
    We're going to create a page on our site and a corresponding navigation item.
  • 0:19
    Our new navigation item is going to be added to the menu system like so,
  • 0:23
    and when we click on it, it'll take us to a new page
  • 0:25
    at a defined URL, in our case, /magic,
  • 0:29
    and on that page, we'll just display some content.
  • 0:31
    Adding pages is something that as module developers,
  • 0:34
    we do fairly often, whether it's a page like this
  • 0:36
    that regular users might want to come to and interact with

Overview of the Drupal Menu System

Loading...

Provides a overview presentation for how Drupal's menu system takes care of incoming requests via the index.php. Then it walks through the process of implementing a simple module that hooks into Drupal's menu system at the path of /magic. It then executes a page callback function of menu_magic_basic(), which outputs some simple markup text.

Downloads: 
Log in or sign up to download companion files.
Additional resources: