function theme_legal_display in Legal 6.8
Same name and namespace in other branches
- 5 legal.module \theme_legal_display()
- 6.7 legal.module \theme_legal_display()
- 7.2 legal.module \theme_legal_display()
- 7 legal.module \theme_legal_display()
4 theme calls to theme_legal_display()
- legal_user in ./
legal.module - Implementation of hook_user().
- theme_legal_administration in ./
legal.admin.inc - theme_legal_login in ./
legal.module - theme_legal_page in ./
legal.module
File
- ./
legal.module, line 190 - Displays Terms & Conditions, and makes sure they are accepted before registration is accepted.
Code
function theme_legal_display($form) {
if (!empty($form['legal']['conditions']['#value'])) {
// Scroll box (CSS).
if ($form['display']['#value'] == 1) {
$path = base_path() . drupal_get_path('module', 'legal');
drupal_add_css(drupal_get_path('module', 'legal') . '/legal.css');
$form['legal']['conditions']['#prefix'] = '<div class="legal-terms">';
$form['legal']['conditions']['#suffix'] = '</div>';
}
return $form;
}
}