1 menu.module menu_preprocess_block(&$variables)

Implements hook_preprocess_block().

File

core/modules/menu/menu.module, line 941
Allows administrators to customize the site's menus.

Code

function menu_preprocess_block(&$variables) {
  if ($variables['block']->module == 'menu') {
    $variables['attributes']['role'] = 'navigation';
  }
}