You are here

function certificate_reset_certificates_action in Certificate 6

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

File

./certificate.module, line 693
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: %event.', array(
      '%event' => $node->title,
    ));
  }
  else {

    //print_r("No Node");
  }
}