function high_contrast_switch in High contrast 7
Same name and namespace in other branches
- 6 high_contrast.module \high_contrast_switch()
Toggle high contrast styles and redirects the user to a destination url.
File
- ./
high_contrast.module, line 293 - High Contrast main module file.
Code
function high_contrast_switch($enable = FALSE) {
$destination = '';
$_SESSION['high_contrast_activated'] = $enable;
if (isset($_GET['destination'])) {
$destination = $_GET['destination'];
}
drupal_goto($destination);
}