I've been asked to change the order of the back/next/cancel buttons, to put cancel before the others (don't ask). I've browsed the code, and the position of the buttons appears to be hardcoded in ctools_wizard_wrapper, with no way to change the order at the theme layer (unless you use CSS, that doesn't seem optimal)

Comments

AntoniTen’s picture

Title: Allow theming the form buttons » Allow theming the form buttons in the form wizard
nagiek’s picture

Version: 6.x-1.7 » 7.x-1.x-dev
Priority: Minor » Normal
Status: Active » Needs review
StatusFileSize
new2.06 KB

This could help me too. Here's a patch for 7.x.

merlinofchaos’s picture

Shouldn't we actually be using #type => 'actions' instead?

merlinofchaos’s picture

Status: Needs review » Needs work
nagiek’s picture

Status: Needs work » Needs review
StatusFileSize
new796 bytes

Sure that's easier. I went this way to add my own class to the wrapper, but #type=>'actions' has the same effect.

Micro patch attached.

nagiek’s picture

StatusFileSize
new796 bytes

Sure that's easier. I went this way to add my own class to the wrapper, but #type=>'actions' has the same effect.

Micro patch attached.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Yep, looks good.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Actually, since it was @merlinofchaos' idea in #3 in the first place, I'm going to be bold and commit this.
Thanks @nagiek!

http://drupalcode.org/project/ctools.git/commit/df98d1f

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.