function progress_end_progress in Progress 8
Same name and namespace in other branches
- 6 progress.module \progress_end_progress()
- 7 progress.module \progress_end_progress()
End a progress. Sets to 100% (=1)
File
- ./
progress.module, line 114 - Progress framework for keeping track of progresses
Code
function progress_end_progress($name, $message) {
$current = microtime(TRUE);
return db_update('progress')
->fields(array(
'progress' => 1,
'message' => $message,
'end_stamp' => $current,
))
->condition('name', $name)
->execute();
}