Wrong way to overwrite a menu declared by another module

kiamlaluno - July 27, 2008 - 14:11
Project:Blog Add-ons
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Chajecki
Status:active
Description

In Drupal 6, the correct way to overwrite a menu defined by another module is to implement hook_alter_menu().
This is not what the module does, when it define its own menu callbacks.

<?php
  $items
['blog'] = array('title' => t(''),
 
'page callback' => 'blog_addons_bloggers',
 
'access arguments' => array('access content'),
 
'type' => MENU_CALLBACK,
);
?>

#1

Chajecki - October 16, 2008 - 03:25
Assigned to:Anonymous» Chajecki

Thanks for useful suggestion. I tried to do minimal job to make a D6 version of this module from D5 one so obviously I missed such subtle difference and probably many others.
I do appreciate your feedback and I will implement a fix in a new release.

 
 

Drupal is a registered trademark of Dries Buytaert.