forum_preprocess_block

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';
  }
}
doc_Drupal
2016-10-29 09:17:19
Comments
Leave a Comment

Please login to continue.