You are here

function example_comment_load in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_comment_load()

File

coder_upgrade/tests/old/samples/example.module, line 840

Code

function example_comment_load() {
  if ($value) {

    // perform the update action, then refresh node statistics
    db_query($query, $cid);

    // _comment_load() -- Change the next line but leave this alone
    $comment = _comment_load($cid);
    _comment_update_node_statistics($comment->nid);

    // Allow modules to respond to the updating of a comment.
  }
}