menu name and multilingual support
olivM - March 9, 2009 - 12:29
| Project: | Auto Menu |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | farbridges |
| Status: | closed |
Jump to:
Description
there are a few things missing in the new_menu array, needed to :
- specify the name of the parent menu ( otherwise the new item is always created for the 'navigation' menu )
- set the langcode, when the node is translatable.
<?php
$new_menu = array(
'link_path' => 'node/' . $node->nid,
'link_title' => $node->title,
'menu_name' => $parent_menu[0],
'plid' => $parent_menu[1],
'options' => array()
//'customized' => true, // ?
);
if ( $node->language )
$options = array('langcode' => $node->language);
?>
#1
subscribing
#2
Thanks. That info should indeed be included. Added these changes to the module after some adjustments.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.