From fcafabae52cefd8012f9e6e9d9a55fcf8956d577 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 7 May 2009 16:28:40 +0000 Subject: 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 --- views/default/account/forms/register.php | 3 +++ views/default/input/captcha.php | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 views/default/input/captcha.php 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 .= "
"; $form_body .= "
"; + // 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 @@ + \ No newline at end of file -- cgit v1.2.3