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
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

J0nathan - September 1, 2009 - 23:42

subscribing

#2

farbridges - October 9, 2009 - 14:36
Assigned to:Anonymous» farbridges
Status:active» fixed

Thanks. That info should indeed be included. Added these changes to the module after some adjustments.

#3

System Message - October 23, 2009 - 14:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.