Multipage registration form with Ctools I'm trying to follow the tutorial on multipage user registrations at http://www.grasmash.com/article/building-multistep-registration-form-drupal-7-using-ctools, but I'm doing something wrong. As it's written, if I put function hook_form_user_register_alter(&amp;$form, &amp;form_state) {, it throws me a Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE error; however, if I change the &amp;form_state to &amp;$form_state, it doesn't complain. 

HOWEVER

It seems as if this form isn't replacing the existing form. There's a button added to the registration form Create new account (the standard Drupal continue button is still there). The rest of the standard Drupal form is still the same (just username and password fields). 

Thanks for your help
try this 

function grasmash_form_user_register_alter(&amp;$form, &amp;$form_state, $form_id) {
  $form['#submit'] = array(
    'user_register_submit',
    'ctools_wizard_submit',
  );
}