1.20.x locale.module locale_preprocess_block(&$variables)

Implements hook_preprocess_block().

File

modules/locale/locale.module, line 880
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';
  }
}