Commit f18f4430 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove terms and conditions from register form & display as html below


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 01c490ce
......@@ -223,13 +223,6 @@ else {
die_info(get_string('registeringdisallowed'));
}
$elements['tandctext'] = array(
'type' => 'textarea',
'rows' => 15,
'cols' => 60,
'readonly' => 'yes',
'value' => preg_replace('#([^\n])(\n)([^\n])#', '$1 $3', html2text(get_site_page_content('termsandconditions'))),
);
$elements['tandc'] = array(
'type' => 'radio',
'title' => get_string('iagreetothetermsandconditions', 'auth.internal'),
......@@ -391,6 +384,7 @@ function register_submit(Pieform $form, $values) {
$smarty = smarty();
$smarty->assign('register_form', pieform($form));
$smarty->assign('termsandconditions', get_site_page_content('termsandconditions'));
$smarty->assign('PAGEHEADING', hsc(get_string('register')));
$smarty->display('register.tpl');
......
......@@ -4,6 +4,7 @@
<p>{str tag=registerstep1description}</P>
{$register_form}
{if $termsandconditions}<br><br><div>{$termsandconditions}</div>{/if}
{elseif $register_profile_form}
{$register_profile_form}
{/if}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment