summaryrefslogtreecommitdiff
path: root/modules/recaptcha/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-03 17:30:18 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-03 17:30:18 -0800
commit1faa2492952a54f0b80cce149ae42b59b91039df (patch)
treee25c2d0e9ceccf1974449eeda3ef62f4cb5e87c0 /modules/recaptcha/helpers
parent6dd622416531e8897af2bc3712e55a640277ac62 (diff)
parent9a33f96e31ba41d78ab24eb9420d74578c7fbbcf (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/recaptcha/helpers')
-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 7a0b4f58..04af9568 100644
--- a/modules/recaptcha/helpers/recaptcha_event.php
+++ b/modules/recaptcha/helpers/recaptcha_event.php
@@ -28,6 +28,12 @@ class recaptcha_event_Core {
}
}
+ static function register_add_form($form) {
+ if (module::get_var("recaptcha", "public_key")) {
+ $form->register_user->recaptcha("recaptcha")->label("")->id("g-recaptcha");
+ }
+ }
+
static function admin_menu($menu, $theme) {
$menu->get("settings_menu")
->append(Menu::factory("link")