function certificate_snapshot_delete in Certificate 7.3
Same name and namespace in other branches
- 8.3 certificate.module \certificate_snapshot_delete()
- 6.2 certificate.module \certificate_snapshot_delete()
- 6 certificate.module \certificate_snapshot_delete()
- 7.2 certificate.module \certificate_snapshot_delete()
- 3.x certificate.module \certificate_snapshot_delete()
Remove snapshot.
Parameters
stdClass $account:
stdClass $node:
Return value
bool
File
- ./
certificate.module, line 504 - Certificate module.
Code
function certificate_snapshot_delete($account, $node) {
$sql = "DELETE FROM {certificate_snapshots} WHERE uid = %d AND nid = %d";
db_delete('certificate_snapshots')
->condition('uid', $account->uid)
->condition('nid', $node->nid)
->execute();
return TRUE;
}