You are here

function theme_site_disclaimer_node in Site Disclaimer 7

Theme the Site Disclaimer section.

Parameters

$variables: Array with 'element' - the Site Disclaimer build array.

Return value

HTML output.

File

./site_disclaimer.module, line 276
This module adds Site Disclaimer to the registration page.

Code

function theme_site_disclaimer_node($variables) {
  $element = $variables['element'];

  //drupal_set_message(iprintr($element,'element',0));
  $theme = isset($element['#site_disclaimer_theme']) ? $element['#site_disclaimer_theme'] : 'node';

  // Hide node tags, links
  unset($element['field_tags'], $element['links']);

  // id to match our css (#site-disclaimer) for setting Site Disclaimer form height
  $output = '<div id="site-disclaimer" class="content clear-block">';
  $output .= theme($theme, $element);
  $output .= '</div>';
  return $output;
}