summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/user_profile.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-22 12:58:23 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-22 13:00:08 -0700
commitdc80cde379edfd8c2d5c875363e801c9228f3e5e (patch)
treea68a989a7556a8d667dd450ba29e8c116f94c60c /modules/gallery/helpers/user_profile.php
parentadc4061125f8a82f7fef0dc3ebbc2fe24bcbd5ae (diff)
Add "captcha_protect_form" event that the recaptcha module grabs and
uses to add a captcha to the end of the first group in the form. If there are no groups, it adds the captcha at the end of the form. Updated user_profile and comment forms to use it.
Diffstat (limited to 'modules/gallery/helpers/user_profile.php')
-rw-r--r--modules/gallery/helpers/user_profile.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/user_profile.php b/modules/gallery/helpers/user_profile.php
index e853933f..d9cc8ace 100644
--- a/modules/gallery/helpers/user_profile.php
+++ b/modules/gallery/helpers/user_profile.php
@@ -48,6 +48,7 @@ class user_profile_Core {
->rules("required")
->error_messages("required", t("You must enter a message"));
module::event("user_profile_contact_form", $form);
+ module::event("captcha_protect_form", $form);
$group->submit("")->value(t("Send"));
return $form;
}