summaryrefslogtreecommitdiff
path: root/modules/recaptcha
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-01-26 16:33:02 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-01-26 16:33:02 +0000
commita6f794c20dc3592bcaef17c622413c1b670a20d8 (patch)
tree8819f4d9108b4b98fc1d59a3fb23d28cdfba9555 /modules/recaptcha
parentb21e7be11a0abe57790ec2a2fcca1874632fed8c (diff)
parentaccd00464e2d7e1d1fd0e24e1ee583a7baa73611 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/recaptcha')
-rw-r--r--modules/recaptcha/helpers/recaptcha_event.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/recaptcha/helpers/recaptcha_event.php b/modules/recaptcha/helpers/recaptcha_event.php
index e7ded3ab..a7f64bdd 100644
--- a/modules/recaptcha/helpers/recaptcha_event.php
+++ b/modules/recaptcha/helpers/recaptcha_event.php
@@ -18,6 +18,12 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class recaptcha_event_Core {
+ static function user_profile_contact_form($form) {
+ if (module::get_var("recaptcha", "public_key")) {
+ $form->message->recaptcha("recaptcha")->label("")->id("g-recaptcha");
+ }
+ }
+
static function comment_add_form($form) {
if (module::get_var("recaptcha", "public_key")) {
$form->add_comment->recaptcha("recaptcha")->label("")->id("g-recaptcha");