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
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
}
/**
- * 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
}
/**
- * Function to actually build the form
+ * Build the form object
*
* @return void
* @access public
$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');
}
/**
- *
* @access public
*
* @return void