You are here

function support_comment_load in Support Ticketing System 7

Implements hook_comment_load().

File

./support.module, line 1261
support.module

Code

function support_comment_load($comments) {
  $result = db_query('SELECT * FROM {support_ticket_comment} WHERE cid IN (:cids)', array(
    ':cids' => array_keys($comments),
  ));
  foreach ($result as $additions) {
    $comments[$additions->cid]->support_ticket = $additions;
  }
}