/[drupal]/contributions/sandbox/alex_b/mtk/mtk_example/mtk_example.module
ViewVC logotype

Contents of /contributions/sandbox/alex_b/mtk/mtk_example/mtk_example.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Aug 7 17:25:18 2008 UTC (15 months, 2 weeks ago) by alexb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
File MIME type: text/x-php
Add version string.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2