function theme_legal_display in Legal 7
Same name and namespace in other branches
- 5 legal.module \theme_legal_display()
- 6.8 legal.module \theme_legal_display()
- 6.7 legal.module \theme_legal_display()
- 7.2 legal.module \theme_legal_display()
5 theme calls to theme_legal_display()
- legal_form_user_profile_form_alter in ./
legal.module - Implements hook_form_FORM_ID_alter().
- legal_form_user_register_form_alter in ./
legal.module - Implements hook_form_FORM_ID_alter().
- theme_legal_administration in ./
legal.admin.inc - theme_legal_login in ./
legal.module - theme_legal_page in ./
legal.module
File
- ./
legal.module, line 221 - Module file for Legal.
Code
function theme_legal_display($variables) {
$form = $variables['form'];
if (!empty($form['legal']['conditions']['#markup'])) {
// Scroll box (CSS).
if ($form['display_header']['display']['#value'] == 1) {
$form['legal']['#attached']['css'][] = drupal_get_path('module', 'legal') . '/legal.css';
$form['legal']['conditions']['#prefix'] = '<div class="legal-terms">';
$form['legal']['conditions']['#suffix'] = '</div>';
}
}
return $form;
}