diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-27 08:21:54 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-27 08:21:54 +0000 |
commit | a30c28b5fc2ff8152de61c2c3440d9a7131deab8 (patch) | |
tree | 00ea514d5d4110fb5d03a6147cf1936f5cff6e38 /modules/recaptcha/helpers | |
parent | 2a9d48f8bb0acb75a2d8ed30eb85ae79f7933afa (diff) |
Make the comment -> recaptcha binding happen via an event dispatch as
opposed to a direct call.
Diffstat (limited to 'modules/recaptcha/helpers')
-rw-r--r-- | modules/recaptcha/helpers/recaptcha_event.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/recaptcha/helpers/recaptcha_event.php b/modules/recaptcha/helpers/recaptcha_event.php new file mode 100644 index 00000000..d5dac756 --- /dev/null +++ b/modules/recaptcha/helpers/recaptcha_event.php @@ -0,0 +1,25 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ + +class recaptcha_event_Core { + static function comment_add_form($form) { + $form->add_comment->recaptcha("recaptcha")->label("")->id("gRecaptcha"); + } +} |