? ._registerprofile.module
? registerprofile.info
? registerprofile5.patch
Index: registerprofile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/registerprofile/registerprofile.module,v
retrieving revision 1.4
diff -r1.4 registerprofile.module
3,12d2
<  * Implementation of hook_help().
<  */
< function registerprofile_help($section) {
<   switch ($section) {
<   case 'admin/modules#description':
<     return t('Adds profilenodes to the register form. <em>Note: Requires nodeprofile.module</em>');
<   }
< }
< 
< /*
20,24c10,15
<       foreach ($types as $type => $type_name) {
<         if (is_nodeprofile($type)) {
<           $node = NULL;
<           	if (!$_SESSION['role']) {
<           	$role = 1;
---
>       if ($types) {
>         foreach ($types as $type => $type_name) {
>           if (is_nodeprofile($type)) {
>             $node = NULL;
>             if (!$_SESSION['role']) {
>           	  $role = 1;
26c17
<           	$role = $_SESSION['role'];
---
>           	  $role = $_SESSION['role'];
35a27
>         }
38c30
<         $form_data = node_form_array($node);
---
>         $form_data = node_form($node);
41,42c33,36
<         
<         /* I have to call each hook_form_alter by 'hand' because node_form_array doesn't include any changes made by form_alter */
---
>         /* I have to call each hook_form_alter by 'hand' 
>          * because node_form_array doesn't include any 
>          * changes made by form_alter 
>          **/
47,50c41,46
<         } 
<     
<         /*put the whole node form in to a fieldset and set tree to true for future use by node_save*/
<         $form[$node->type] = array(
---
>         }         
>         $node_name = $node->type_name;
>         /*put the whole node form in to a fieldset and set 
>          * tree to true for future use by node_save
>          **/
>         $form[$node_name->type] = array(
52c48
<           '#title' => $node->type_name,
---
>           '#title' => $node_name->name,
58c54,56
<         /* get rid of the submit and other stuff here.  I could add per-field permissions here as well */
---
>         /* get rid of the submit and other stuff here.  
>          * I could add per-field permissions here as well 
>          **/
66c64
<           $form[$node->type][$name] = $field;
---
>           $form[$node_name->type][$name] = $field;
75c73,76
<           if($field['type'] && is_nodeprofile($field['type'])) {
---
>           
>           if(is_nodeprofile($field['type'])) {
>             //build the node object and save it.
>             //Is there a better way to set the status and body?
78a80,81
>             $node->status = $node->options['status'];
>             $node->body = $node->body_filter['body'];
