function _high_contrast_link in High contrast 7
Return high contrast toggle link HTML.
It's needed because we load the js really early and we don't have Drupal.t() set there to translate the link.
Return value
string HTML for toggle link.
1 call to _high_contrast_link()
- high_contrast_init in ./
high_contrast.module - Implements hook_init().
File
- ./
high_contrast.module, line 523 - High Contrast main module file.
Code
function _high_contrast_link() {
$destination = drupal_get_destination();
return l(t('Toggle high contrast'), '', [
'attributes' => [
'class' => [
'element-invisible',
'element-focusable',
],
'rel' => 'nofollow',
],
]);
}