You are here

function log_undone_action in Log entity 7

Action function for log_undone_action.

Marks a log as not done.

Parameters

Log $log: The log entity object.

array $context: Array with parameters for this action.

File

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

Code

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

  // Only proceed if the log is already done.
  if (!$log->done) {
    return;
  }

  // Mark the log as done.
  $log->done = FALSE;

  // Save the log.
  log_save($log);
}