diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block/block.module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index bfca75590..3df293701 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -336,8 +336,12 @@ function _block_get_renderable_array($list = array()) { $build[$key] = $block->content; unset($block->content); - // Add contextual links for this block; skipping the system main block. - if ($key != 'system_main') { + // Add contextual links for this block; skip the main content block, since + // contextual links are basically output as tabs/local tasks already. Also + // skip the help block, since we assume that most users do not need or want + // to perform contextual actions on the help block, and the links needlessly + // draw attention on it. + if ($key != 'system_main' && $key != 'system_help') { $build[$key]['#contextual_links']['block'] = array('admin/structure/block/manage', array($block->module, $block->delta)); } |