You are here

function migrate_message in Migrate 6

Convenience function for generating a message array

Parameters

$message: Text describing the error condition

$type: One of the MIGRATE_MESSAGE constants, identifying the level of error

Return value

Structured array suitable for return from an import hook

6 calls to migrate_message()
comment_migrate_complete_comment in modules/comment.migrate.inc
Implementation of hook_migrate_complete_comment().
comment_migrate_import_comment in modules/comment.migrate.inc
Implementation of hook_migrate_import_comment().
node_migrate_import_node in modules/node.migrate.inc
Implementation of hook_migrate_import_node().
taxonomy_migrate_import_term in modules/taxonomy.migrate.inc
Implementation of hook_migrate_import_term().
taxonomy_migrate_prepare_node in modules/taxonomy.migrate.inc
Implementation of hook_migrate_prepare_node().

... See full list

File

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

Code

function migrate_message($message, $type = MIGRATE_MESSAGE_ERROR) {
  $error = array(
    'level' => $type,
    'message' => $message,
  );
  return $error;
}