As it's now part of core, I think the integration of block management contextual links should be easy.

For those who don't know about it, it outputs a contextual menu on blocks (hover) with the relevant links to various admin tasks, mainly 'Configure' to allow the edition of the block without going in admin/structure/blocks by hand.

I just changed the block.tpl.php this way ;

<div id="block-<?php print $block->module .'-'. $block->delta ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  <div class="block-inner">
      <?php print render($title_prefix); ?>
    <?php if ($block->subject): ?>
      <h2 class="block-title"<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
    <?php endif;?>
      <?php print render($contextual_links); // Added this line ?>
      <?php print render($title_suffix); ?>
<div class="content" <?php print $content_attributes; ?>>
  <?php print $content; ?>
</div>
  </div>
</div> <!-- /block-inner /block -->

... and it seems to work fine.

Maybe it can cause problems, but I thought I might share if it helps others.

Comments

Version:7.x-2.x-dev» 7.x-3.x-dev
Assigned:Unassigned» SteveK
Status:Active» Closed (works as designed)

contextual links are already working out of the box in 3.x branch.