You are here

function _heartbeat_comment_load in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 modules/heartbeat_comments/heartbeat_comments.admin.inc \_heartbeat_comment_load()

Load the entire comment by cid.

Parameters

$cid: The identifying comment id.

Return value

A heartbeat comment object.

1 call to _heartbeat_comment_load()
heartbeat_comments_multiple_delete_confirm in modules/heartbeat_comments/heartbeat_comments.admin.inc
List the selected comments and verify that the admin really wants to delete them.

File

modules/heartbeat_comments/heartbeat_comments.admin.inc, line 131
Admin page callbacks for the heartbeat comments module.

Code

function _heartbeat_comment_load($cid) {
  return db_select('heartbeat_comments', 'hc')
    ->fields('hc')
    ->condition('hc.hcid', $cid)
    ->execute();
}