function legal_page in Legal 7
Same name and namespace in other branches
- 5 legal.module \legal_page()
 - 6.8 legal.pages.inc \legal_page()
 - 6.7 legal.module \legal_page()
 - 7.2 legal.pages.inc \legal_page()
 
@file User pages and forms.
1 string reference to 'legal_page'
- legal_menu in ./
legal.module  - Implements hook_menu().
 
File
- ./
legal.pages.inc, line 8  - User pages and forms.
 
Code
function legal_page() {
  global $language;
  $conditions = legal_get_conditions($language->language);
  $output = '';
  switch (variable_get('legal_display', '0')) {
    case 0:
      // Scroll Box.
      $output = nl2br(strip_tags($conditions['conditions']));
      break;
    case 1:
    // CSS Scroll Box with HTML.
    case 2:
    // HTML.
    case 3:
      // Page Link.
      $output = check_markup($conditions['conditions'], $conditions['format']);
      break;
  }
  return $output;
}