I'm getting a string of these warnings once I've enabled Special Menu Items: warning: Missing argument 2 for variable_get(), called in C:\Program Files\xampp\htdocs\drupal-6.10\sites\all\modules\special_menu_items\special_menu_items.module on line 66 and defined in C:\Program Files\xampp\htdocs\drupal-6.10\includes\bootstrap.inc on line 500.

Haven't been able to play with this module yet because of the warnings. Any advice?

Comments

triversedesigns’s picture

I am getting the same issue, may possibly be a bug, Im going to see what I can find out as this could be a great little module.
Hopefully if it is a bug, a fix will be out shortly.

ikama’s picture

Hi there,

I' ve reviewed the code and as mentioned in the error-message in line 66 of file "special_menu_items.module":

$theme_overwrite=variable_get('oldtheme_menu_item_link');

I have changed this line to :

$theme_overwrite=variable_get('oldtheme_menu_item_link', $link);

As far as I can see everything runs now as it shoud!

Please note that this only a "quick and dirty" solution after a quick review of the code in the midnight! ;-)

I hope it helps!

Greetings from Austria

www.powerbarrow.eu

Alaska’s picture

Category: bug » feature

Changed out the code as indicated and the module works with Drupal 6.11. No more error messages like before.

Assume that the menu items listed under the parent (no link) can not be collapsed. They can only be displayed as expanded. Is that correct?

Could this be a possible feature request?

This node talks about expanded and collapsed menus using no links. (node/143322) Not sure if it will be of any assistance.

tamerzg’s picture

Hi all,
yes it seems that there was a missing 2nd variable in variable_get. Fix is now applied and can be downloaded here.

Alaska: For now this module doesn't support expanding nolink items, but you can add it as feature request and we will considered it if
enough people are interested. I would recommend you to use it with Simple Menu or Nice Menu modules.

tamerzg’s picture

Category: feature » bug
Status: Active » Fixed

Bug is fixed.

Alaska’s picture

Title: warnings upon enabling » Collapsed/Expanded Menu
Category: bug » feature
Status: Fixed » Active

Feature Request

A desired enhancement could be the addition of code to allow the nolink parent the option to collapse the children menu items to reduce menu real estate. The collapse or no collapse option could be a check box for enabling the collapse. The default could stay at expanded.

raphaelhuefner’s picture

You can use other modules for "Collapsed/Expanded Menu", http://drupal.org/project/dhtml_menu is one example, only little work is necessary to make the two modules co-operate, see #508252: Conflicts with "special menu items"

rsevero’s picture

Status: Active » Fixed

Marking as fixed as the original issue is already fixed.

Status: Fixed » Closed (fixed)

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