Skip to content
Snippets Groups Projects
Commit 5b40aa82 authored by Jakob P's avatar Jakob P
Browse files

Cleanup some old code in docs migration wizard

parent cda694b7
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,10 @@ function drupalorg_docs_migrate_form($node, $step = NULL) {
$output = drupal_render($form);
if ($output === FALSE || !empty($form_state['complete'])) {
batch_process();
//return render(drupalorg_docs_migrate_get_result($object)) . "\n\r" . l(t('Back'), $user->uid . '/tickets');
return render(drupalorg_docs_migrate_get_result($object));
}
elseif (!empty($form_state['cancel'])) {
drupal_goto('user/'. $user->uid . '/tickets');
drupal_goto('node/'. $node->nid);
}
else {
return $output;
......@@ -176,7 +175,7 @@ function drupalorg_docs_migrate_wizard_finish(&$form_state) {
);
batch_set($batch);
batch_process('admin/content');
batch_process('node/' . $form_state['object']->nid);
}
}
......@@ -385,6 +384,6 @@ function _drupalorg_docs_migrate_batch_finished($success, $results, $operations)
* returns renderable array for multistep form result output.
*/
function drupalorg_docs_migrate_get_result($object) {
//$output = t("You've been successfully registered!");
//return $output;
$output = t("Book has been successfully migrated!");
return $output;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment