function _migrate_dashboard_form_run in Migrate 6
1 string reference to '_migrate_dashboard_form_run'
- _migrate_dashboard_form in ./
migrate_pages.inc - Form definition for dashboard page
File
- ./
migrate_pages.inc, line 350
Code
function _migrate_dashboard_form_run($form, &$form_state) {
$started = time();
$values = $form_state['values'];
$clearing = array();
$importing = array();
foreach ($values['importing'] as $mcsid => $value) {
if ($value) {
$importing[$mcsid] = $mcsid;
}
if ($values['clearing'][$mcsid]) {
$clearing[$mcsid] = $mcsid;
}
}
variable_set('migrate_limit', $values['limit']);
variable_set('migrate_update', $values['update']);
$batch = array(
'operations' => array(
array(
'migrate_content_process_batch',
array(
$clearing,
$importing,
$values['limit'],
trim($values['idlist']),
),
),
),
'title' => t('Migration processing'),
'file' => drupal_get_path('module', 'migrate') . '/migrate_pages.inc',
'init_message' => t('Starting migration process'),
'progress_message' => t(''),
'error_message' => t('An error occurred. Some or all of the migrate processing has failed.'),
'finished' => '_migrate_content_process_finish',
);
batch_set($batch);
}