aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-07 16:28:40 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-07 16:28:40 +0000
commitfcafabae52cefd8012f9e6e9d9a55fcf8956d577 (patch)
tree560d1df4d82f9e56eff44839e02535b0caf142b5 /views/default
parentb191a30ebfe6e8bcb75c41193ed36190ae53a12f (diff)
downloadelgg-fcafabae52cefd8012f9e6e9d9a55fcf8956d577.tar.gz
elgg-fcafabae52cefd8012f9e6e9d9a55fcf8956d577.tar.bz2
Closes #983: Introducing input/captcha view, use wherever a captcha is required - override with plugins and use the actions hook to do additional validation!
git-svn-id: https://code.elgg.org/elgg/trunk@3266 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-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