function certificate_reset_certificates_action in Certificate 7.2
Same name and namespace in other branches
- 8.3 certificate.module \certificate_reset_certificates_action()
- 6.2 certificate.module \certificate_reset_certificates_action()
- 6 certificate.module \certificate_reset_certificates_action()
- 7.3 certificate.module \certificate_reset_certificates_action()
- 4.x certificate.module \certificate_reset_certificates_action()
- 3.x certificate.module \certificate_reset_certificates_action()
Action to delete certificate snapshots on a node.
File
- ./
certificate.module, line 586 - Certificate module.
Code
function certificate_reset_certificates_action($object, $context) {
$node = $object;
if ($node->nid && is_numeric($node->nid)) {
certificate_snapshot_delete_by_node($node);
watchdog('action', 'Reset certificate snapshots for: %node.', array(
'%node' => $node->title,
));
}
else {
//print_r("No Node");
}
}