You are here

function legal_page in Legal 6.7

Same name and namespace in other branches
  1. 5 legal.module \legal_page()
  2. 6.8 legal.pages.inc \legal_page()
  3. 7.2 legal.pages.inc \legal_page()
  4. 7 legal.pages.inc \legal_page()
1 string reference to 'legal_page'
legal_menu in ./legal.module
Implementation of hook_menu().

File

./legal.module, line 151

Code

function legal_page() {
  $conditions = legal_get_conditions();
  $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
      $output = filter_xss_admin($conditions['conditions']);
      break;
  }
  return $output;
}