function progress_end_progress in Progress 7
Same name and namespace in other branches
- 8 progress.module \progress_end_progress()
- 6 progress.module \progress_end_progress()
End a progress. Sets to 100% (=1)
Parameters
string $name: Name of progress
string $message: Message for progress
Return value
boolean TRUE on success, FALSE on fail
File
- ./
progress.module, line 156 - 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();
}