Answers.Body: <p>My guess is the problem is with Multiple Register since many folks have integrated LoginToboggin and CiviCRM. Turn off all of the three Drupal modules you mention, then reenable them one at a time to isolate which is causing the problem.</p>
  
  <p>You can probably benefit by examining the source of the page with and without the troublesome module enabled in your browser using Firebug or something similar. You may end up needing to provide a patch to Multiple Register or making a custom extension in CiviCRM to help CiviCRM and Multiple Register play nicely with each other.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-24T18:13:08.240Z
Answers.LastActivityDate: 2015-03-24T18:13:08.240Z
Answers.UserDisplayName: Joe Murray
Answers.Body: <p>This isn't possible with Multiple Registration because they don't use the standard user/register page (and I'm guessing they override the core user/register functionality). You would need to hack or override civicrm.module. Below is relevant code from the module showing how it checks the path, note how it only understands "user/register", and "admin/people/create":</p>
  
  <pre><code>  // check for either user/register or admin/people/create
    $register =
      ((arg(0) == 'user' &amp;&amp; arg(1) == 'register') ||
      (arg(0) == 'admin' &amp;&amp; arg(1) == 'people' &amp;&amp; arg(2) == 'create')
    ) ? TRUE : FALSE;
    $userID = NULL;
    if (!empty($form['#user'])) {
      $userID = CRM_Core_BAO_UFMatch::getContactId($form['#user']-&gt;uid);
    }
    $errors = CRM_Core_BAO_UFGroup::isValid($userID, $form['#user_category'], $register);
    if ($errors &amp;&amp; is_array($errors)) {
      foreach ($errors as $name =&gt; $error) {
        form_set_error($name, $error);
      }
      return FALSE;
    }
    return TRUE;
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-24T19:27:55.757Z
Answers.LastActivityDate: 2015-03-24T19:27:55.757Z
Answers.UserDisplayName: Nicholai
Body: <p>I have a current Drupal and CiviCRM installation running <a href="https://www.drupal.org/project/logintoboggan" rel="nofollow noreferrer">LoginToboggan</a>, <a href="https://www.drupal.org/project/panopoly" rel="nofollow noreferrer">Panopoly</a> and <a href="https://www.drupal.org/project/multiple_registration" rel="nofollow noreferrer">Multiple Register</a>.</p>
  
  <p><img src="https://i.sstatic.net/X1hyg.png" alt="CiviCRM Profiles Creation"></p>
  
  <p>I can toggle the original <em>Name &amp; Address</em> Profile included with the installation, but when I set the checkbox for <em>Drupal User Registration</em> to true on the custom Profile Settings page, the form doesn't appear on the Drupal User registration form.</p>
  
  <pre><code>user/register
  </code></pre>
  
  <p><strong>Additional registration forms built with Multiple Registration</strong></p>
  
  <pre><code>register/supporter
  register/volunteer
  </code></pre>
  
  <p>Clearing cache and running has no effect.</p>
  
  <p>What's the best way to debug this problem?</p>
  
Tags: <drupal><registration><profile>
Title: How can I include Profiles on Drupal user registration?
ThreadText: # How can I include Profiles on Drupal user registration?
  
  (Asked by: username_0 on 2015-03-24)
  
  I have a current Drupal and CiviCRM installation running LoginToboggan, Panopoly and Multiple Register.
  
  I can toggle the original Name & Address Profile included with the installation, but when I set the checkbox for Drupal User Registration to true on the custom Profile Settings page, the form doesn't appear on the Drupal User registration form.
  user/register
  
  Additional registration forms built with Multiple Registration
  register/supporter
  register/volunteer
  
  Clearing cache and running has no effect.
  What's the best way to debug this problem?
  
  **Tags:** drupal, registration, profile
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-03-24. Score: 2
  
  My guess is the problem is with Multiple Register since many folks have integrated LoginToboggin and CiviCRM. Turn off all of the three Drupal modules you mention, then reenable them one at a time to isolate which is causing the problem.
  
  You can probably benefit by examining the source of the page with and without the troublesome module enabled in your browser using Firebug or something similar. You may end up needing to provide a patch to Multiple Register or making a custom extension in CiviCRM to help CiviCRM and Multiple Register play nicely with each other.
  
  
  ---
  
  ### Answer by username_2 on 2015-03-24. Score: 1
  
  This isn't possible with Multiple Registration because they don't use the standard user/register page (and I'm guessing they override the core user/register functionality). You would need to hack or override civicrm.module. Below is relevant code from the module showing how it checks the path, note how it only understands "user/register", and "admin/people/create":
    // check for either user/register or admin/people/create
    $register =
      ((arg(0) == 'user' && arg(1) == 'register') ||
      (arg(0) == 'admin' && arg(1) == 'people' && arg(2) == 'create')
    ) ? TRUE : FALSE;
    $userID = NULL;
    if (!empty($form['#user'])) {
      $userID = CRM_Core_BAO_UFMatch::getContactId($form['#user']->uid);
    }
    $errors = CRM_Core_BAO_UFGroup::isValid($userID, $form['#user_category'], $register);
    if ($errors && is_array($errors)) {
      foreach ($errors as $name => $error) {
        form_set_error($name, $error);
      }
      return FALSE;
    }
    return TRUE;
  }
  
  
  ---
  
  