You are here

function legal_page in Legal 5

Same name and namespace in other branches
  1. 6.8 legal.pages.inc \legal_page()
  2. 6.7 legal.module \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

File

./legal.module, line 138

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
    case 3:

      // Page Link
      $output = filter_xss_admin($conditions['conditions']);
      break;
  }
  return $output;
}