Change search callbacks to use the event system, so move them out of

xxx_search helpers and into xxx_event helpers.
This commit is contained in:
Bharat Mediratta
2009-07-28 20:30:34 -07:00
parent 1e90e40d3a
commit 44bc74edb9
7 changed files with 25 additions and 90 deletions

View File

@@ -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;
}
}
}