I have a requirement where my content profile node form must be split into a tab like interface with checkboxes in each tab.
I have themed the node form as required by creating a new hook theme as follows -


 'my_node_form' => array(
      'arguments' => array('form' => NULL),
      'path' => $path,
      'file' => $file,
      'template' => 'node-my-edit',
    ),

then i have a template preprocess for this node form to strip out some of the form elements and create a tab interface. for the node-my-edit.tpl.php i have the following -

<?php
print $tabs;
print drupal_render($form['buttons']);
print drupal_render($form);

This renders everything perfectly for me on the node/add and the node edit forms for this content type. Problem occurs if i try and expose this form to the user registration page via this module by ticking 'show on registration form'. The form displays, but it does not get run through this theming function so all my theming is lost and the form does not display correctly. Any ideas how i can force content_profile_registration to run the form through this function before it is output to the registration form - it seems content_profile_registration is processing and rendering the form, before my custom module has a chance to theme it.

Thanks
Graham.

Comments

Anonymous’s picture

Hi Graham !

Have you found a solution?

i don't know how to theme the registration pages for each roles I've created.... :(

I hope you can you help me...

Thank you very much.