aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/account/forms/register.php3
-rw-r--r--views/default/input/captcha.php12
2 files changed, 15 insertions, 0 deletions
diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php
index 5e1025f5f..1bc6d00e3 100644
--- a/views/default/account/forms/register.php
+++ b/views/default/account/forms/register.php
@@ -26,6 +26,9 @@
$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password', 'class' => "general-textarea")) . "</label><br />";
$form_body .= "<label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2', 'class' => "general-textarea")) . "</label><br />";
+ // Add captcha hook
+ $form_body .= elgg_view('input/captcha');
+
if ($admin_option)
$form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option'))));
diff --git a/views/default/input/captcha.php b/views/default/input/captcha.php
new file mode 100644
index 000000000..2e0a29286
--- /dev/null
+++ b/views/default/input/captcha.php
@@ -0,0 +1,12 @@
+<?php
+ /**
+ * This view provides a hook for third parties to provide captcha behaviour.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008-2009
+ * @link http://elgg.org/
+ */
+?> \ No newline at end of file