summaryrefslogtreecommitdiff
path: root/modules/recaptcha/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:21:07 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-29 09:21:07 -0700
commitbfafef95e8090b66f3322f73e532056b10ca116a (patch)
treeda84d4327946efd0e67abf5922f4630fd47c467d /modules/recaptcha/helpers
parent53dd35b5c8e741511d5bdc1ed35769d4ce281fe0 (diff)
Generalize the adding of the recaptcha form by changing the name of the event to recaptch_add. This prevents us from having to keep modifying the recaptch module anytime we add a form that requires recaptcha.
Diffstat (limited to 'modules/recaptcha/helpers')
-rw-r--r--modules/recaptcha/helpers/recaptcha_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/recaptcha/helpers/recaptcha_event.php b/modules/recaptcha/helpers/recaptcha_event.php
index feedced4..6e885656 100644
--- a/modules/recaptcha/helpers/recaptcha_event.php
+++ b/modules/recaptcha/helpers/recaptcha_event.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class recaptcha_event_Core {
- static function comment_add_form($form) {
+ static function recaptcha_add($form) {
if (module::get_var("recaptcha", "public_key")) {
$form->add_comment->recaptcha("recaptcha")->label("")->id("g-recaptcha");
}