Issue #1183042 by mgifford: Follow up for Add WAI-ARIA roles to Core blocks.

8.0.x
catch 2012-04-19 12:04:09 +09:00
parent a384eb4854
commit 3b1b9c71f9
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function help_help($path, $arg) {
* Implements hook_preprocess_block().
*/
function help_preprocess_block(&$variables) {
if ($variables['block']->module == 'help') {
if ($variables['block']->module == 'system' && $variables['block']->delta == 'help') {
$variables['attributes_array']['role'] = 'complementary';
}
}