Commit f379abd9 authored by Dries's avatar Dries

- Patch #663956 by sun, Bojhan, Dave Reid: remove contextual links from help text block.

parent 7fd52471
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment