1 locale.module | locale_preprocess_block(&$variables) |
Implements hook_preprocess_block().
File
- core/
modules/ locale/ locale.module, line 879 - Add language handling functionality and enables the translation of the user interface to languages other than English.
Code
function locale_preprocess_block(&$variables) {
if ($variables['block']->module == 'locale') {
$variables['attributes']['role'] = 'navigation';
}
}