function _migrate_content_set_form_submit in Migrate 6
Implementation of hook_submit().
1 string reference to '_migrate_content_set_form_submit'
- _migrate_dashboard_form in ./
migrate_pages.inc - Form definition for dashboard page
File
- ./
migrate_pages.inc, line 446
Code
function _migrate_content_set_form_submit($form, &$form_state) {
$content_set = array();
$content_set['view_name'] = $form_state['values']['view_name'];
$content_set['view_args'] = trim($form_state['values']['view_args']);
$content_set['machine_name'] = $form_state['values']['machine_name'];
$content_set['description'] = $form_state['values']['description'];
$destination = explode('/', $form_state['values']['contenttype']);
$content_set['contenttype'] = $destination[0];
if (isset($destination[1])) {
$content_set['desttype'] = $destination[1];
}
$content_set['weight'] = $form_state['values']['weight'];
$mcsid = migrate_save_content_set($content_set);
// Go straight to the mapping form
$form_state['redirect'] = "admin/content/migrate/content_set/{$mcsid}";
}