On a node/add page, the first form button to submit to the next step reads 'Proceed to funding and finance >>'.

Comments

vlooivlerke’s picture

Yip, have the same problem. Have to edit code :(

vgulla’s picture

How do we edit the code? What lines exactly? Sorry I am a newbie

unityweb’s picture

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;
}

unityweb’s picture

unityweb’s picture

unityweb’s picture

stborchert’s picture

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.

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 :)

vgulla’s picture

Thank you