function theme_legal_login in Legal 7.2
Same name and namespace in other branches
- 5 legal.module \theme_legal_login()
- 6.8 legal.module \theme_legal_login()
- 6.7 legal.module \theme_legal_login()
- 7 legal.module \theme_legal_login()
File
- ./
legal.module, line 750 - Module file for Legal.
Code
function theme_legal_login($variables) {
$form = $variables['form'];
$form = theme('legal_display', array(
'form' => $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 (isset($form['changes']['#value'])) {
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_children($form);
$output .= $save;
return $output;
}