0

Just to clarify: I don't mean customizing the registration page. I've already managed to customize it to display what I want. What I'd like to know is if it's possible to make any changes to the function that inserts the info to the database after the user submits the form. The site I'm working on has a phpbb3 forum and I'm looking for a way to get a user registered in both after registering in the main site. I'm aware of the phpBB SSO module but that handles signing in, not registration. Also, I haven't been able to get phpBB SSO to work, either. Thanks.

I'm using phpBB3 instead of Drupal's Forum module because this is a migration from an already existing site that used phpbb. The client wants it this way and getting everything to look and function like their original site would take too long.

1

You can use

hook_user_insert

to add additional code to the new user account creation process.

More information on the User API

|improve this answer|||||
0

Apart from David's solutions, you can implements hook_form_alter hook in your custom module.

    /**
     * Implements hook_form_alter()
     */
    function custom_feature_form_alter(&$form, &$form_state, $form_id) {

    //dpm($form_id); to check form id

      if ($form_id == "registration-form-id") {

        // $form['#validate'][] = 'custom_feature_profile_validate';
        $form['#submit'][] = 'custom_feature_profile_submit';

      }
    }


    function custom_feature_profile_submit($form, $form_state) {

    dpm($form_state['values']);
//your code

    }

Kindly see that registration-form-id is id of user registration form.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.