-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for CAPTCHAv3 and added form element. Comment out old CAPTCHA …
…code.
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* You can add multiple email addresses by adding one on each line inside an | ||
* array, enclosed in quotes, separated by commas. E.g. | ||
* | ||
* $config['recipients'] = array( | ||
* $config['recipients'] = array(/the/// | ||
* '[email protected]', | ||
* '[email protected]' | ||
* ); | ||
|
@@ -180,12 +180,23 @@ | |
|
||
/** FORM ELEMENT CONFIGURATION **/ | ||
|
||
/** | ||
* Configure the topic element | ||
* Filters: Trim | ||
* Validators: Required | ||
*/ | ||
|
||
$topic = new Quform_Element('topic', 'Topic: '); | ||
$topic->addFilter('trim'); | ||
$topic->addValidator('required'); | ||
$form->addElement($topic); | ||
|
||
/** | ||
* Configure the first name element | ||
* Filters: Trim | ||
* Validators: Required | ||
*/ | ||
$name = new Quform_Element('name', 'Name'); | ||
$name = new Quform_Element('name', 'From: '); | ||
$name->addFilter('trim'); | ||
$name->addValidator('required'); | ||
$form->addElement($name); | ||
|
@@ -195,7 +206,7 @@ | |
* Filters: Trim | ||
* Validators: Required, Email | ||
*/ | ||
$email = new Quform_Element('email', 'Email address'); | ||
$email = new Quform_Element('email', 'From e-mail: '); | ||
$email->addFilter('trim'); | ||
$email->addValidators(array('required', 'email')); | ||
$form->addElement($email); | ||
|
@@ -205,22 +216,11 @@ | |
* Filters: Trim | ||
* Validators: Required | ||
*/ | ||
$message = new Quform_Element('message', 'Message'); | ||
$message = new Quform_Element('message', 'Message: '); | ||
$message->addFilter('trim'); | ||
$message->addValidator('required'); | ||
$form->addElement($message); | ||
|
||
/** | ||
* Configure the topic element | ||
* Filters: Trim | ||
* Validators: Required | ||
*/ | ||
|
||
$topic = new Quform_Element('topic', 'Topic'); | ||
$topic->addFilter('trim'); | ||
$topic->addValidator('required'); | ||
$form->addElement($topic); | ||
|
||
/** | ||
* Configure the CAPTCHA element | ||
* Filters: Trim | ||
|