Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupalorg-3267276
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupalorg-3267276
Commits
5b40aa82
Commit
5b40aa82
authored
8 years ago
by
Jakob P
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup some old code in docs migration wizard
parent
cda694b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
features/drupalorg_docs_migrate/drupalorg_docs_migrate.wizard.inc
+5
-6
5 additions, 6 deletions
.../drupalorg_docs_migrate/drupalorg_docs_migrate.wizard.inc
with
5 additions
and
6 deletions
features/drupalorg_docs_migrate/drupalorg_docs_migrate.wizard.inc
+
5
−
6
View file @
5b40aa82
...
...
@@ -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
->
u
id
.
'/tickets'
);
drupal_goto
(
'
node
/'
.
$
node
->
n
id
);
}
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
register
ed!");
//
return $output;
$output
=
t
(
"
Book has
been successfully
migrat
ed!"
);
return
$output
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment