1.20.x menu.module | menu_preprocess_block(&$variables) |
Implements hook_preprocess_block().
File
- modules/
menu/ menu.module, line 897 - Allows administrators to customize the site's menus.
Code
function menu_preprocess_block(&$variables) {
if ($variables['block']->module == 'menu') {
$variables['attributes']['role'] = 'navigation';
}
}