summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-12 00:20:36 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-12 00:20:36 +0000
commitf379abd91f59e2d20316b7da1abf33c2cb44a22d (patch)
tree488d61e5dbbecb748ec71fe9d9bcdbc7feec3f5d /modules/block
parent7fd52471cef0b55353e53367890d620c08cdaf86 (diff)
downloadbrdo-f379abd91f59e2d20316b7da1abf33c2cb44a22d.tar.gz
brdo-f379abd91f59e2d20316b7da1abf33c2cb44a22d.tar.bz2
- Patch #663956 by sun, Bojhan, Dave Reid: remove contextual links from help text block.
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.module8
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));
}