You are here

function certificate_snapshot_delete_by_node in Certificate 6.2

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_snapshot_delete_by_node()
  2. 6 certificate.module \certificate_snapshot_delete_by_node()
  3. 7.3 certificate.module \certificate_snapshot_delete_by_node()
  4. 7.2 certificate.module \certificate_snapshot_delete_by_node()
  5. 3.x certificate.module \certificate_snapshot_delete_by_node()

Delete all snapshots on a node.

Parameters

stdClass $node:

Return value

bool

1 call to certificate_snapshot_delete_by_node()
certificate_reset_certificates_action in ./certificate.module
Action to delete certificate snapshots on a node.

File

./certificate.module, line 495
Certificate module.

Code

function certificate_snapshot_delete_by_node($node) {
  $sql = "DELETE FROM {certificate_snapshots} WHERE nid = %d";
  db_query($sql, $node->nid);
  return TRUE;
}