forum_preprocess_block(&$variables)
Implements hook_preprocess_HOOK() for block templates.
File
- core/modules/forum/forum.module, line 354
- Provides discussion forums.
Code
function forum_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'forum') { $variables['attributes']['role'] = 'navigation'; } }
Please login to continue.