function example_comment_load in Coder 7.2
Same name and namespace in other branches
- 7 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.
}
}