Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15911

Remove civicrm_drupal_create_user

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.5, 4.6
    • Fix Version/s: 4.6
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      This is a follow-up from: CRM-3538

      I recently came across the civicrm_drupal_create_user function, in the api.php file.

      This function would create a Drupal user by writing directly to the database, which is a terrible idea. This is what the Drupal APIs are for.

      I've checked all the other code in CiviCRM and this function is not called from anywhere.

      Given these two points, we should remove it from the code base completely.

      I'll put together a PR against master.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              john John K.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: