You are here

function site_disclaimer_preprocess in Site Disclaimer 7

Implements MODULE_preprocess().

File

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

Code

function site_disclaimer_preprocess(&$variables, $hook) {

  //drupal_set_message(iprintr($variables,'variables',0));
  if (isset($variables['elements']['#site_disclaimer']) && isset($variables['elements']['#site_disclaimer_theme']) && $hook == $variables['elements']['#site_disclaimer_theme']) {
    $variables['display_submitted'] = FALSE;

    // Hide author info
    $variables['title'] = '';

    // Hide node title
  }
}