function log_done_action in Log entity 7
Action function for log_done_action.
Marks a log as done.
Parameters
Log $log: The log entity object.
array $context: Array with parameters for this action.
File
- ./
log.module, line 505 - Log - A general purpose record keeping system.
Code
function log_done_action(Log $log, $context = array()) {
// Only proceed if the log is not already done.
if ($log->done) {
return;
}
// Mark the log as done.
$log->done = TRUE;
// Save the log.
log_save($log);
}