You are here

function import_pass in Import 6

A function menat to be called by modules implementing the Import API to indicate success of an imported item.

@todo implement message

Parameters

$data: An array containing impid and type so that we know what we are working with.

$msg: A string that serves as an optional message to associate with succesful import.

3 calls to import_pass()
import_node_import_process in examples/import_node/import_node.module
Implementation hook_import_process()
import_role_import_process in examples/import_role/import_role.module
import_user_import_process in examples/import_user/import_user.module
Implementation hook_import_process()

File

./import.module, line 69

Code

function import_pass($data, $msg = '') {
  db_query("INSERT INTO {import_pass} VALUES('%s', '%s')", $data->impid, $data->type);
  db_query("DELETE from {import} where impid = '%s' AND type = '%s'", $data->impid, $data->type);
}