By star-szr on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Summary
The 'show' variable has been removed from the admin_block theme hook. The ability to hide the output of this (or any) theme hook can be accomplished by adding #access => FALSE in a render array.
Before
$block = array();
$block['title'] = $module;
$block['content'] = drupal_render($admin_block_content);
$block['description'] = t($description);
$block['show'] = FALSE;
$admin_block = array(
'#theme' => 'admin_block',
'#block' => $block,
);
After
$block = array();
$block['title'] = $module;
$block['content'] = drupal_render($admin_block_content);
$block['description'] = t($description);
$admin_block = array(
'#theme' => 'admin_block',
'#block' => $block,
'#access' => FALSE,
);
Impacts:
Module developers
Themers