Merge branch 'phpunit-ob-fix' of https://github.com/giant-rabbit/civicrm-core into...
[civicrm-core.git] / CRM / Contact / Form / Task / Useradd.php
index 96d41e09feb055b06197e5c0e498f7f65bf344f7..124a1c8b2cc203e784404a4a57da46cddf1cf068 100755 (executable)
@@ -39,7 +39,7 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
   protected $_contactId;
 
   /**
-   * contact.display_name of contact for whom we are adding user
+   * Contact.display_name of contact for whom we are adding user
    *
    * @var int
    * @public
@@ -47,7 +47,7 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
   public $_displayName;
 
   /**
-   * primary email of contact for whom we are adding user
+   * Primary email of contact for whom we are adding user
    *
    * @var int
    * @public
@@ -66,7 +66,7 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
   }
 
   /**
-   * This function sets the default values for the form. Note that in edit/view mode
+   * Set default values for the form. Note that in edit/view mode
    * the default values are retrieved from the database
    *
    * @access public
@@ -85,7 +85,7 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
   }
 
   /**
-   * Function to actually build the form
+   * Build the form object
    *
    * @return void
    * @access public
@@ -95,7 +95,6 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
     $element->freeze();
     $this->add('text', 'cms_name', ts('Username'), array('class' => 'huge'));
     $this->addRule('cms_name', 'Username is required', 'required');
-    $this->addRule('cms_name', 'Enter a valid username', 'minlength', 2);
     $this->add('password', 'cms_pass', ts('Password'), array('class' => 'huge'));
     $this->add('password', 'cms_confirm_pass', ts('Confirm Password'), array('class' => 'huge'));
     $this->addRule('cms_pass', 'Password is required', 'required');
@@ -123,7 +122,6 @@ class CRM_Contact_Form_Task_Useradd extends CRM_Core_Form {
   }
 
   /**
-   *
    * @access public
    *
    * @return void