summaryrefslogtreecommitdiff
path: root/modules/comment/comment.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/comment/comment.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/comment/comment.tpl.php')
-rw-r--r--modules/comment/comment.tpl.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/comment/comment.tpl.php b/modules/comment/comment.tpl.php
index 7b489aade..2777b3eda 100644
--- a/modules/comment/comment.tpl.php
+++ b/modules/comment/comment.tpl.php
@@ -19,6 +19,7 @@
* - $status: Comment status. Possible values are:
* comment-unpublished, comment-published or comment-preview.
* - $title: Linked title.
+ * - $contextual_links (array): An array of contextual links for the comment.
* - $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:
@@ -46,6 +47,10 @@
*/
?>
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+ <?php if ($contextual_links): ?>
+ <?php print render($contextual_links); ?>
+ <?php endif; ?>
+
<?php print $picture ?>
<?php if ($new): ?>