CRM-14121 - Apply patch by Ben Wilhelm
authorColeman Watts <coleman@civicrm.org>
Tue, 4 Feb 2014 23:14:16 +0000 (15:14 -0800)
committerColeman Watts <coleman@civicrm.org>
Tue, 4 Feb 2014 23:14:16 +0000 (15:14 -0800)
CRM/Utils/System/Drupal.php

index 23ea8ee70e4c25f9f581a260cbed5e8ec385fd10..6e41423360fa8c01856316fba9952052d133b34c 100644 (file)
@@ -50,7 +50,8 @@ class CRM_Utils_System_Drupal extends CRM_Utils_System_DrupalBase {
    *
    */
   function createUser(&$params, $mail) {
-    $form_state = array();
+    $form_state = form_state_defaults();
+    
     $form_state['input'] = array(
       'name' => $params['cms_name'],
       'mail' => $params[$mail],