summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-07 20:29:06 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-07 20:29:06 -0800
commite1e2d9448fa28eec508d889c2f56da2084e0ac07 (patch)
treecd0bbb5f28498f73dccedf5737676d2a1c919f5c /modules/tag
parent89597e7e703dddef8a2379f822772f9fd205d03b (diff)
parentedcb3b665690acc85067bc43e1900390be228a4e (diff)
Merge branch 'master' into organize_dev
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag_event.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index 829089c4..baf8b1ae 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -147,4 +147,19 @@ 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;
+ }
+ }
}