You are here

function migrate_message_table_name in Migrate 6

Determine the name of the message table for this content set

Parameters

$mcsid: Unique identifier of the content set

Return value

The name of the message table

11 calls to migrate_message_table_name()
MigrateUnitTest::testCRUD in tests/migrate_api.test
Test API for managing content sets
migrate_content_process_clear in ./migrate.module
Clear migrated objects from the specified content set
migrate_content_process_import in ./migrate.module
Import objects from the specified content set
migrate_content_set_update in ./migrate.module
Prepare a content set for updating of existing items
migrate_delete_content_set in ./migrate.module
Delete the specified content set, including map and message tables.

... See full list

File

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

Code

function migrate_message_table_name($mcsid) {
  $machine_name = db_result(db_query("SELECT machine_name FROM {migrate_content_sets}\n                            WHERE mcsid=%d", $mcsid));
  return drupal_strtolower("migrate_msgs_{$machine_name}");
}