PerfMigrate.module 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * @file
  4. * This is the file description for PerfMigration module.
  5. *
  6. * In this more verbose, multi-line description, you can specify what this
  7. * file does exactly. Make sure to wrap your documentation in column 78 so
  8. * that the file can be displayed nicely in default-sized consoles.
  9. */
  10. /**
  11. * Implements hook_menu().
  12. */
  13. // function PerfMigrate_menu() {
  14. // $items = array();
  15. //
  16. // // Type '$item ⇥' to create a new menu item.
  17. //
  18. // return $items;
  19. // }
  20. /**
  21. * You must implement hook_migrate_api(), setting the API level to 2, for
  22. * your migration classes to be recognized by the Migrate module (for the 7.x-2.x branch).
  23. */
  24. function PerfMigrate_migrate_api() {
  25. $api = array(
  26. 'api' => 2,
  27. 'migrations' => array(
  28. 'PerfPerformanceNode' => array('class_name' => 'PerfPerformanceNodeMigration'),
  29. 'PerfGroupeNode' => array('class_name' => 'PerfGroupeNodeMigration'),
  30. 'PerfLDCNode' => array('class_name' => 'PerfLDCNodeMigration'),
  31. 'PerfDimpNode' => array('class_name' => 'PerfDimpNodeMigration'),
  32. 'PerfDmanuNode' => array('class_name' => 'PerfDmanuNodeMigration'),
  33. 'PerfDpressNode' => array('class_name' => 'PerfDpressNodeMigration'),
  34. 'PerfDsonsNode' => array('class_name' => 'PerfDsonsNodeMigration'),
  35. 'PerfDvidsNode' => array('class_name' => 'PerfDvidsNodeMigration'),
  36. 'PerfObjetNode' => array('class_name' => 'PerfObjetNodeMigration'),
  37. // updates
  38. 'PerfPerformanceUpdateNode' => array('class_name' => 'PerfPerformanceUpdateNodeMigration'),
  39. 'PerfGroupeNodeUpdate' => array('class_name' => 'PerfGroupeNodeUpdateMigration'),
  40. 'PerfLDCNodeUpdate' => array('class_name' => 'PerfLDCNodeUpdateMigration'),
  41. 'PerfDimpNodeUpdate' => array('class_name' => 'PerfDimpNodeUpdateMigration'),
  42. 'PerfDmanuNodeUpdate' => array('class_name' => 'PerfDmanuNodeUpdateMigration'),
  43. 'PerfDpressNodeUpdate' => array('class_name' => 'PerfDpressNodeUpdateMigration'),
  44. 'PerfObjetNodeUpdate' => array('class_name' => 'PerfObjetNodeUpdateMigration'),
  45. )
  46. );
  47. return $api;
  48. }