You are here

function migrate_xlat in Migrate 6

Same name and namespace in other branches
  1. 6.2 migrate.module \migrate_xlat()
1 string reference to 'migrate_xlat'
migrate_menu in ./migrate.module
Implementation of hook_menu().

File

./migrate.module, line 1269
This module provides tools at "administer >> content >> migrate" for analyzing data from various sources and importing them into Drupal tables.

Code

function migrate_xlat($contenttype, $oldid) {
  if ($contenttype && $oldid) {
    $newid = _migrate_xlat_get_new_id($contenttype, $oldid);
    if ($newid) {
      $uri = migrate_invoke_all("xlat_{$contenttype}", $newid);
      drupal_goto($uri[0], NULL, NULL, 301);
    }
  }
}