You are here

function certificate_snapshot_delete in Certificate 6.2

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

Remove snapshot.

Parameters

stdClass $account:

stdClass $node:

Return value

bool

File

./certificate.module, line 482
Certificate module.

Code

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