migrate_save_content_set(&$content_set, $options = array())

Saves a new or updated content set returning the unique ID (mcsid) of the content set, or NULL if there was a failure. The associated map and message tables are created or modified as necessary.

$content_set
An array or object representing the content set. This is passed by reference (so when adding a new content set the ID can be set). Fields include:
mcsid
The unique ID of the content set. If present, the existing content set with this ID is updated. If absent, a new content set is created and this field is filled in with the new ID.
view_name
The name of the view containing the source data for this content set.
view_args
Arguments to be applied to the view when processing a content set, separated by '/'.
sourcekey
The primary key of view_name.
contenttype
The base destination of the migration (e.g., 'node' or 'user').
desttype
A destination may support subtypes - in particular, nodes come in different content types. The subtype is specified here (e.g., 'page' or 'story').
description
The name of the content set.
clearing
TRUE to enable the content set for clearing, FALSE otherwise.
importing
TRUE to enable the content set for importing, FALSE otherwise.
scanning
TRUE to enable the content set for scanning, FALSE otherwise.
weight
Numerical value determining what order the content set will be displayed in, or processed in.
$options
An array of additional options for saving the content set. Currently:
base_table
The base table of the view - if provided, we don't need to load the view to determine the table.
base_database
The database of the base table - if base_table is present and base_database omitted, it defaults to 'default'

migrate_delete_content_set($mcsid)

Deletes the given content set, including associated map and message tables.

migrate_save_content_mapping(&$mapping)

Saves a new or updated content mapping returning the unique ID (mapping) of the mapping, or NULL if there was a failure.

$mapping
An array or object representing the mapping. This is passed by reference (so when adding a new mapping the ID can be set). Fields include:
mcmid
The unique ID of the mapping. If present, the existing mapping with this ID is updated. If absent, a new mapping is created and this field is filled in with the new ID.
mcsid
The unique ID of the content set this mapping applies to.
srcfield
The name of the source column from the view. This is not the column title as displayed in the view, it is the field name from the view query. If you edit the view and preview it, you can find the field name in the SELECT clause.
destfield
The Drupal field name serving as the destination of the mapping.
default_value
The default value to be used if there is no srcfield specified, or if the specified srcfield is empty.

migrate_delete_content_mapping($mcmid)

Deletes the given content mapping.