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' => array(
'arguments' => array('form' => 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?