Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
triversedesigns CreditAttribution: triversedesigns commentedI 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.
Comment #2
ikama CreditAttribution: ikama commentedHi 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
Comment #3
Alaska CreditAttribution: Alaska commentedChanged 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.
Comment #4
tamerzg CreditAttribution: tamerzg commentedHi 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.
Comment #5
tamerzg CreditAttribution: tamerzg commentedBug is fixed.
Comment #6
Alaska CreditAttribution: Alaska commentedFeature 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.
Comment #7
raphaelhuefner CreditAttribution: raphaelhuefner commentedYou 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"
Comment #8
rsevero CreditAttribution: rsevero commentedMarking as fixed as the original issue is already fixed.