refactor: move into a website directory

This commit is contained in:
Oliver Davies 2022-07-13 18:09:09 +01:00
parent 86529d7148
commit 3c5c0e808a
747 changed files with 133 additions and 2 deletions

View file

@ -0,0 +1,27 @@
---
title: Display a Custom Menu in a Drupal 7 Theme Template File
date: 2012-08-18
excerpt: The code needed to display a menu in a Drupal 7 template file.
tags:
- aria
- drupal
- drupal-7
- drupal-planet
- php
---
For reference, this is the code needed to display a menu in a Drupal 7 template
file, including the navigation ARIA role.
```language-php
$menu_name = 'menu-footer-menu';
$menu_id = 'footer-menu';
print theme('links', array(
'links' => menu_navigation_links($menu_name),
'attributes' => array(
'id' => $menu_id,
'role' => 'navigation',
'class'=> array('links', 'inline')
)
));
```