function theme_legal_display in Legal 5
Same name and namespace in other branches
- 6.8 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()
File
- ./
legal.module, line 343
Code
function theme_legal_display($form) {
if (empty($form['legal']['conditions']['#value'])) {
return;
}
// 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;
}