summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-07 20:03:26 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-07 20:03:26 -0800
commite4c6662daeab45e9d05841e58d66ac68d4511375 (patch)
tree74ba0f2c4644679ca2577ab4bdae408b05eeb3ac /modules/tag/helpers
parente86e8b8bd1d828d81080c63f9a063254145115e4 (diff)
parent06d94065ce0919f34151da05b32642a95397044f (diff)
Merge branch 'master' of git://github.com/ckieffer/gallery3
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag_event.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index 829089c4..6b8de723 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -147,4 +147,20 @@ class tag_event_Core {
}
}
}
+
+ static function info_block_get_metadata($block, $item) {
+ $tags = array();
+ foreach (tag::item_tags($item) as $tag) {
+ $tags[] = "<a href=\"" . url::site("tag/{$tag->name}") . "\">{$tag->name}</a>";
+ }
+ if ($tags) {
+ $info = $block->content->metadata;
+ $info["tags"] = array(
+ "label" => t("Tags:"),
+ "value" => implode(", ", $tags)
+ );
+ $block->content->metadata = $info;
+ }
+ }
+
}