summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-28 20:30:34 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-28 20:30:34 -0700
commit44bc74edb9ae77bfaeb70f708411026131ec12bb (patch)
tree809ffd0bbf3839b3a25e1e9f05ee50c5de33921f /modules/comment/helpers/comment_event.php
parent1e90e40d3a9fe2cb826b56686f23a33879418048 (diff)
Change search callbacks to use the event system, so move them out of
xxx_search helpers and into xxx_event helpers.
Diffstat (limited to 'modules/comment/helpers/comment_event.php')
-rw-r--r--modules/comment/helpers/comment_event.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php
index 614c7c65..0234aea9 100644
--- a/modules/comment/helpers/comment_event.php
+++ b/modules/comment/helpers/comment_event.php
@@ -38,4 +38,15 @@ class comment_event_Core {
->url("#comments")
->css_id("gCommentsLink"));
}
+
+ static function item_index_data($item, $data) {
+ foreach (Database::instance()
+ ->select("text")
+ ->from("comments")
+ ->where("item_id", $item->id)
+ ->get()
+ ->as_array() as $row) {
+ $data[] = $row->text;
+ }
+ }
}