You are here

function high_contrast_preprocess_html in High contrast 7

Implements hook_preprocess_html().

File

./high_contrast.module, line 379
High Contrast main module file.

Code

function high_contrast_preprocess_html(&$vars) {
  if (isset($_SESSION['high_contrast_activated']) && $_SESSION['high_contrast_activated'] == 1) {
    $vars['classes_array'][] = 'high-contrast';
  }
}