Hi,
it would be nice, to have a integration with content_profile_user_registration, which is a submodule of content_profile.
Might be be useful, i wrote a litle helper-module for that purpose:

function mymodule_form_fbconnect_register_form_alter(&$form, &$form_state){

    // setting $form_id for content_profile_registration_form_alter()
    $form_id = 'user_register';
    content_profile_registration_form_alter($form, $form_state, $form_id);
   ...
}

Comments

michaeldrupal’s picture

Hi fl3a,

it's really nice you wrote it. I need this submodule, but how to use it? Thx!

fl3a’s picture

Title: Integration with content_profile_user_registration » submodule?

hi michaeldrupal,

i don't really understand,
think you mean the snippet above the so called "submodule" content_profile_user_registration is included into content_profile.

To use that snippet above you will need to write an .info-file which contain something like this:

;$Id:
name= MyModule
description = Overwrites the registration form of fbconnect
core = 6.x
package = "Facebook connect"
dependencies[] = fbconnect
dependencies[] = content_profile_registration
php = 5.2
budda’s picture

Title: submodule? » Integration with content_profile_user_registration

changed title back to something meaningful.

@fl3a could you provide the module as an attachment as it could be included as a contrib with fbconnect project.

fl3a’s picture

Title: Integration with content_profile_user_registration » submodule
StatusFileSize
new625 bytes

sure,
here it is :D

vectoroc’s picture

Title: submodule » Integration with content_profile_user_registration
Status: Active » Postponed
vectoroc’s picture

I think it should work without any addition submodule. So the issue is in fbconnect_register_form