Comment looks like it didn't change from d5 to d6, so the comment.inc from d6 can be copied to d5 with basically no modification. Patch attached.

Menu looks harder. There was a major change from d5 to d6, and it's easy to understand why - the d5 version looks pretty archaic... I will work on it, and see if I can come up with a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeryan’s picture

Status: Active » Needs review
mikeryan’s picture

Status: Needs review » Fixed

Committed, thanks!

naught101’s picture

Title: d5 versions of comment and menu » d5 versions menu and menu_links
Status: Fixed » Active

That was only part of it. Rejigging. I have a working menu patch, but it's a bit useless without a menu_links patch, which looks a lot harder. I'll see if I can get it cracked this weekend.

bmherold’s picture

Version: » 7.x-2.0

Any updates here? Just started working on a D5->D7 migration and trying to learn the ropes, but it looks like a lot of D5 prebuilt objects are missing. Thanks!

naught101’s picture

The old menu system is excruciatingly complex, and not directly translatable to the new (post d6) system. I started work on this, but then accidentally delete it, so I'll have to start again. I'll see if I can get to it in the next few weeks, but if someone else wants a go, they should.

naught101’s picture

FileSize
3.81 KB

This is apparently a bit over my head, so I'm posting a half-arsed patch for review.

This is just for menus, not for menu links. For some reason, the $row object isn't being populated with the menu_name property, (Undefined property: stdClass::$menu_name File /home/naught101/Documents/coding/drupal/d7/sites/all/modules/migrate/includes/migration.inc, line 785(file: /home/naught101/Documents/coding/drupal/d7/sites/all/modules/migrate/includes/migration.inc, line 785)) so the preg_replace line fails. This line is there because there are no menu_name (machine name) values in d5, so I'm creating one from the menu title.

mikeryan’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Component: Code » D5-specific
Category: Task » Feature request
Issue summary: View changes