You are here

function hook_audit_log_insert in Audit Log 7

Act on an audit log being inserted.

Parameters

Auditlog $log: The audit log being inserted.

1 invocation of hook_audit_log_insert()
audit_log in ./audit_log.module
Log an audit log.

File

./audit_log.api.php, line 94
API documentation for the Audit log module.

Code

function hook_audit_log_insert(Auditlog $log) {
  $record = (object) array(
    'log_id' => $log->id,
    'custom_value' => $log->custom_value,
  );
  drupal_write_record('log_custom_values', $record);
}