Problem with primary-links
kobnim - October 3, 2009 - 04:11
| Project: | Menu Class |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
I am able to add classes to some menu items and not others.
Specifically, I am able to add classes to "navigation" menu items, but not to "primary link" menu items.
To help diagnose the problem I ran a test and it seems that "navigation" menu item links are getting passed to the function phptemplate_menu_item_link($link), but "primary" menu items links are not.
In case it is relevant, I am creating the primary-link menu during installation. Here is the code from my install profile that creates the primary-link menu:
$primary_links = array (
array(
'menu' => 'primary-links',
'title' => 'Home',
'path' => '<front>',
'weight' => 1,
),
array(
'menu' => 'primary-links',
'title' => 'About Us',
'path' => 'about',
'weight' => 2,
),
);
foreach ($primary_links as $item) {
install_menu_create_menu_item($item['path'], $item['title'], '', $item['menu'], 0, $item['weight']);
}Any thoughts about what may be happening?
Thanks very much,
Mindy
