You are here

function log_clone_action in Log entity 7

Action function for log_clone_action.

Clones a log and gives it a new timestamp.

Parameters

Log $log: The log entity object.

array $context: Array with parameters for this action.

File

./log.module, line 627
Log - A general purpose record keeping system.

Code

function log_clone_action(Log $log, $context = array()) {

  // Clear the log id.
  unset($log->id);

  // Set the date and save.
  _log_action_date_form_action($log, $context);
}