Issue #1183042 by mgifford: Follow up for Add WAI-ARIA roles to Core blocks.
parent
a384eb4854
commit
3b1b9c71f9
|
@ -69,7 +69,7 @@ function help_help($path, $arg) {
|
||||||
* Implements hook_preprocess_block().
|
* Implements hook_preprocess_block().
|
||||||
*/
|
*/
|
||||||
function help_preprocess_block(&$variables) {
|
function help_preprocess_block(&$variables) {
|
||||||
if ($variables['block']->module == 'help') {
|
if ($variables['block']->module == 'system' && $variables['block']->delta == 'help') {
|
||||||
$variables['attributes_array']['role'] = 'complementary';
|
$variables['attributes_array']['role'] = 'complementary';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue