function certificate_reset_certificates_action in Certificate 4.x
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()
- 7.2 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 126
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,
));
}
}