}
/**
- * Function to actually build the form
+ * Build the form object
*
* @return void
* @access public
),
TRUE
);
- $this->addRule('email', ts("Please enter a valid email address (e.g. 'yourname@example.com')."), 'email');
+ $this->addRule('email', ts("Please enter a valid email address."), 'email');
if (!$this->_groupID) {
// create a selector box of all public groups
$config = CRM_Core_Config::singleton();
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');
-
+
if (empty($config->recaptchaPublicKey) ||
empty($config->recaptchaPrivateKey) ||
$contactID) {
);
}
+ /**
+ * @param $fields
+ *
+ * @return array|bool
+ */
static function formRule($fields) {
foreach ($fields as $name => $dontCare) {
if (substr($name, 0, CRM_Core_Form::CB_PREFIX_LEN) == CRM_Core_Form::CB_PREFIX) {
}
/**
- *
* @access public
*
* @return void