Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
here's a 'quick & dirty' workaround
in node_wizard.module, around line 731 replace each occurence of "if (isset(xxx))" by "if (!isset(xxx)) which gives you :
switch ($step) {
case 4:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Business Information");
}
if (!isset($form["buttons"]["next"])) {
unset($form["buttons"]["next"]);
}
if (!isset($form["buttons"]["done"])) {
$form["buttons"]["done"]["#value"] = t("Finish and post your Deal!");
}
break;
case 3:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Funding & Finance");
}
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Marketing »");
}
break;
case 2:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Project Information");
}
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Business Information »");
}
break;
case 1:
default:
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Funding & Finance »");
}
break;
}
Uncomment line 112 in node_wizard.module (_node_wizard_replace_buttons_labels($form, $form_state);) and it will show the button labels you've entered on the node-type's edit-form.
Comments
Comment #1
vlooivlerke commentedYip, have the same problem. Have to edit code :(
Comment #2
vgulla commentedHow do we edit the code? What lines exactly? Sorry I am a newbie
Comment #3
unityweb commentedhere's a 'quick & dirty' workaround
in node_wizard.module, around line 731 replace each occurence of "if (isset(xxx))" by "if (!isset(xxx)) which gives you :
switch ($step) {
case 4:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Business Information");
}
if (!isset($form["buttons"]["next"])) {
unset($form["buttons"]["next"]);
}
if (!isset($form["buttons"]["done"])) {
$form["buttons"]["done"]["#value"] = t("Finish and post your Deal!");
}
break;
case 3:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Funding & Finance");
}
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Marketing »");
}
break;
case 2:
if (!isset($form["buttons"]["previous"])) {
$form["buttons"]["previous"]["#value"] = t("« Back to Project Information");
}
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Business Information »");
}
break;
case 1:
default:
if (!isset($form["buttons"]["next"])) {
$form["buttons"]["next"]["#value"] = t("Proceed to Funding & Finance »");
}
break;
}
Comment #4
unityweb commentedComment #5
unityweb commentedComment #6
unityweb commentedComment #7
stborchertUncomment line 112 in node_wizard.module (
_node_wizard_replace_buttons_labels($form, $form_state);) and it will show the button labels you've entered on the node-type's edit-form.To have a chance to enter the labels you'll need to change the module as described in #979970: Invalid argument, foreach loop, node_wizard.module on line 849 :)
Comment #8
vgulla commentedThank you