function theme_legal_login in Legal 5
Same name and namespace in other branches
- 6.8 legal.module \theme_legal_login()
- 6.7 legal.module \theme_legal_login()
- 7.2 legal.module \theme_legal_login()
- 7 legal.module \theme_legal_login()
File
- ./
legal.module, line 614
Code
function theme_legal_login($form) {
$form = theme('legal_display', $form);
$output .= '<p>' . t('To continue to use this site please read the Terms & Conditions below, and complete the form to confirm your acceptance.') . '</p>';
if ($form['changes']) {
foreach (element_children($form['changes']) as $key) {
$form['changes'][$key]['#prefix'] .= '<li>';
$form['changes'][$key]['#suffix'] .= '</li>';
}
$form['changes']['start_list'] = array(
'#value' => '<ul>',
'#weight' => 0,
);
$form['changes']['end_list'] = array(
'#value' => '</ul>',
'#weight' => 3,
);
$output .= drupal_render($form['changes']);
}
$save = drupal_render($form['save']);
$output .= drupal_render($form);
$output .= $save;
return $output;
}