#P content_profile-6--1 Index: modules/content_profile_registration.module =================================================================== RCS file: /cvs/drupal/contributions/modules/content_profile/modules/Attic/content_profile_registration.module,v retrieving revision 1.1.2.26 diff -u -r1.1.2.26 content_profile_registration.module --- modules/content_profile_registration.module 7 Apr 2009 09:21:19 -0000 1.1.2.26 +++ modules/content_profile_registration.module 14 Apr 2009 09:19:36 -0000 @@ -179,3 +179,20 @@ 'registration_hide' => array(), ); } + +/** + * Implementation of hook_user(). + */ +function content_profile_registration_user($op, &$edit, &$account, $category = NULL) { + global $user; + switch ($op) { + case 'insert': + // reset the profile fields to NULL so they are not added to the $user object. + foreach (content_profile_get_types('names') as $type => $type_name) { + $fields = _content_profile_registration_get_fields($type); + foreach ($fields as $field => $field_name) { + $edit[$field] = NULL; + } + } + break; + } +} \ No newline at end of file