You are here

function theme_legal_display in Legal 6.7

Same name and namespace in other branches
  1. 5 legal.module \theme_legal_display()
  2. 6.8 legal.module \theme_legal_display()
  3. 7.2 legal.module \theme_legal_display()
  4. 7 legal.module \theme_legal_display()
4 theme calls to theme_legal_display()
legal_user in ./legal.module
theme_legal_administration in ./legal.module
theme_legal_login in ./legal.module
theme_legal_page in ./legal.module

File

./legal.module, line 348

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;
}