Overview of the menu concept and menus automatically created with the core Standard installation profile.
Drupal's menu system allows users to create as many separate menus as they need throughout their site. Links can be created to both external sites and internal pieces of content. The site administration interface gives users (with sufficient permissions) the ability to organize and sort these links within their respective menus. The API provided by the menu system gives developers the ability to interact with and alter menu links. The API also includes a mechanism to provide menu links from within custom modules.
- Create several menus for use (and display) in various locations throughout a site
- Add a link to a menu from within a custom module
- Understand how existing menu items can be altered
The Drupal menu system is quite stable. Resources labeled with Drupal 8 should apply to Drupal 9.
Menus can be added as menu blocks using the Block display system
Menus and links in code
This tutorial is part of our Module Developer in Drupal 7 series. Several of the tutorials that follow this one walk through some of the more advanced techniques for working with the menu system.