summaryrefslogtreecommitdiff
path: root/modules/block/block.tpl.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-17 05:50:29 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-17 05:50:29 +0000
commit4278afa16bb46819975f95fe91021edcb852ca47 (patch)
tree736530aa01cbf453813a68b505b5532a2d6597fa /modules/block/block.tpl.php
parent29067790f1295bd657343da8eba6722d6824d15a (diff)
downloadbrdo-4278afa16bb46819975f95fe91021edcb852ca47.tar.gz
brdo-4278afa16bb46819975f95fe91021edcb852ca47.tar.bz2
#473268 by David_Rothstein, sun, yoroy, Gábor Hojtsy, cwgordon7, et al.: Allow contextual editing of dang near everything on the page. Also adds a context system to menu local tasks.
Diffstat (limited to 'modules/block/block.tpl.php')
-rw-r--r--modules/block/block.tpl.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/block/block.tpl.php b/modules/block/block.tpl.php
index 961cb01b0..a1af14707 100644
--- a/modules/block/block.tpl.php
+++ b/modules/block/block.tpl.php
@@ -11,6 +11,7 @@
* - $block->module: Module that generated the block.
* - $block->delta: An ID for the block, unique within each module.
* - $block->region: The block region embedding the current block.
+ * - $contextual_links (array): An array of contextual links for the block.
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. The default values can be one or more of the following:
@@ -36,6 +37,11 @@
*/
?>
<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
+
+<?php if ($contextual_links): ?>
+ <?php print render($contextual_links); ?>
+<?php endif; ?>
+
<?php if ($block->subject): ?>
<h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
<?php endif;?>