Issue:
The function menu_import_parse_menu() is undefined.

When I try calling menu_import_file in menu_import.module I get the following error:

Fatal error: Call to undefined function menu_import_parse_menu() in /Applications/MAMP/htdocs/esf/www/sites/all/modules/contrib/menu_import/menu_import.module on line 80

Background info:
I want to import a list of menu items from within an install function so that's why I call menu_import_file() from code.

Everything works when using the UI.

CommentFileSizeAuthor
#1 menu_import-undefined_function_menu_import_parse_menu-1271776-1.patch535 bytesAnonymous (not verified)

Comments

Anonymous’s picture

The function menu_import_file() should call menu_import_parse_menu_from_file() instead of menu_import_parse_menu().

I created a patch against the 7.x-1.x branch and now it works.

lex0r’s picture

Fixed in latest commit to 7.x-1.x.
braahm, thanks for help!

lex0r’s picture

Status: Active » Closed (fixed)
Anonymous’s picture

You're welcome!