Theming the user registration form I want to theme the user registration form in Drupal 7 by adding new markup, etc. I cannot seem to figure out how to do it.

I've followed a few tutorials which suggested that you could simply invoke hook_theme in template.php, and use a corresponding theme function:

function mytheme_theme(){
  return array(
    'user_register' =&gt; array(
      'arguments' =&gt; array('form' =&gt; NULL),
    ),
  );
}

function mytheme_user_register($form) {
  // print, die, etc
}


But this is not doing anything, regardless of what I do in the theme_user_register() function, or how many times I clear the caches.

Any thoughts about how to do this in D7?
It turns out that I need a combination of changes:

I had to implement hook_form_alter()in a module and set the form's #theme property:

function mymodule_form_user_register_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  $form['#theme'] = 'user_register';
}


And then in template.php:

function mytheme_theme($existing, $type, $theme, $path){
  return array(
    'user_register' =&gt; array(
      'render element' =&gt; 'form',
      'template' =&gt; 'templates/user-register',
    ),
  );
}

function mytheme_preprocess_user_register(&amp;$variables) {
  $variables['rendered'] = drupal_render_children($variables['form']);
}


And then I added user-register.tpl.php with my desired markup, and 

&lt;?php echo $rendered; ?&gt; 


to print the form.