| 1 |
<?php
|
| 2 |
// $Id:$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_mtk().
|
| 6 |
*/
|
| 7 |
function mtk_example_mtk() {
|
| 8 |
$migration['callback'] = 'mtk_example_migrate_content';
|
| 9 |
$migration['name'] = t('Content');
|
| 10 |
$migration['weight'] = -2;
|
| 11 |
$migrations[] = $migration;
|
| 12 |
$migration['callback'] = 'mtk_example_migrate_users';
|
| 13 |
$migration['name'] = t('Users');
|
| 14 |
$migration['weight'] = 0;
|
| 15 |
$migrations[] = $migration;
|
| 16 |
$migration['callback'] = 'mtk_example_migrate_categories';
|
| 17 |
$migration['name'] = t('Categories');
|
| 18 |
$migrations[] = $migration;
|
| 19 |
$migration['callback'] = 'mtk_example_migrate_documents';
|
| 20 |
$migration['name'] = t('Documents');
|
| 21 |
$migrations[] = $migration;
|
| 22 |
return $migrations;
|
| 23 |
}
|
| 24 |
|
| 25 |
function mtk_example_migrate_content() {
|
| 26 |
watchdog('ccmc', 'Migrate content');
|
| 27 |
drupal_set_message(t('Migrate content'));
|
| 28 |
}
|
| 29 |
|
| 30 |
function mtk_example_migrate_users() {
|
| 31 |
watchdog('ccmc', 'Migrate users');
|
| 32 |
drupal_set_message(t('Migrate users'));
|
| 33 |
}
|
| 34 |
|
| 35 |
function mtk_example_migrate_categories() {
|
| 36 |
watchdog('ccmc', 'Migrate categories');
|
| 37 |
drupal_set_message(t('Migrate categories'));
|
| 38 |
}
|
| 39 |
|
| 40 |
function mtk_example_migrate_documents() {
|
| 41 |
watchdog('ccmc', 'Migrate docs');
|
| 42 |
drupal_set_message(t('Migrate docs'));
|
| 43 |
}
|