Download & Extend

menu name and multilingual support

Project:Auto Menu
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:corneverbruggen
Status:closed (fixed)

Issue Summary

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);
?>

Comments

#1

subscribing

#2

Assigned to:Anonymous» corneverbruggen
Status:active» fixed

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

#3

Status:fixed» closed (fixed)

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