You are here

function support_comment_update in Support Ticketing System 7

Implementation of hook_comment_update().

File

./support.module, line 1182
support.module

Code

function support_comment_update($comment) {
  if (is_array($comment)) {
    $node = node_load($comment['nid']);
  }
  else {
    $node = node_load($comment->nid);
  }
  if ($node->type == 'support_ticket') {
    _support_comment_insert_update($comment);
    _support_comment_insert_update2($node, $comment);
  }
}