Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mradcliffe on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-1.x
Introduced in version:
7.x-1.3
Issue links:
Description:
Footermap items now require an #options element property. This will be populated with the menu link options.
A drupal update is required to refresh the theme registry and footermap caches.
Before
$item = array(
'#theme' => 'footermap_item',
'#href' => $item->link_path,
'#title' => $item->link_title,
'#attributes' => array(
'class' => array('footermap-item', 'footermap-item-' . $level),
'id' => 'footermap-item-' . $item->mlid,
),
'#level' => $level,
'#language' => isset($item->language) ? $item->language: LANGUAGE_NONE,
);
After
$options = $item->options ? unserialize($item->options) : array();
$item = array(
'#theme' => 'footermap_item',
'#href' => $item->link_path,
'#title' => $item->link_title,
'#options' => $options,
'#attributes' => array(
'class' => array('footermap-item', 'footermap-item-' . $level),
'id' => 'footermap-item-' . $item->mlid,
),
'#level' => $level,
'#language' => isset($item->language) ? $item->language: LANGUAGE_NONE,
);
Impacts:
Site builders, administrators, editors
Themers