fully rewritten D7 port of menu_import module

Comments

pasqualle’s picture

Assigned: lex0r » Unassigned
Category: feature » task
Status: Closed (fixed) » Needs review

EDIT: download link removed

pasqualle’s picture

- can be used in install profiles (without the need of an external file)
- it is possible to link to internal pages, like contact
example:

  // Create new menu.
  $menu = array(
    'title' => 'My new menu',
    'menu_name' => 'my-new-menu',
    'description' => '...',
  );
  menu_save($menu);

  // Import menu structure.
  $options = array(
    'search_alias' => FALSE,
    'search_title' => FALSE,
    'node_attach' => MI_NODE_LINK_CREATE,
    'node_type' => 'page',
    'node_status' => 1,
    'node_language' => 'en',
  );
  $menu_structure = 'Home|<front>
About
- History
- Team
Gallery
Contact|contact';
  menu_import_string($menu_structure, 'my-new-menu', $options);
cosmicdreams’s picture

Awesome!

Is there anything left to be do for the Drupal 7 version of this module?

pasqualle’s picture

I am out of ideas for improvement, and do not know abot any bugs..

lex0r’s picture

Category: task » feature

Thank you for the improvements! I will try to release an official D7 version of the module as soon as I get free time.

lex0r’s picture

Assigned: Unassigned » lex0r
Status: Needs review » Active

Now I'm preparing an official D7 release. You may wish to use the latest version from 7.x-1.x branch of git!

lex0r’s picture

Status: Active » Closed (fixed)

Status: Needs review » Closed (fixed)