function progress_end_progress in Progress 6
Same name and namespace in other branches
- 8 progress.module \progress_end_progress()
- 7 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 115 - Progress framework for keeping track of progresses
Code
function progress_end_progress($name, $message) {
$current = microtime(TRUE);
return db_query("UPDATE {progress} SET progress = %f, message = '%s', end_stamp = %f WHERE name = '%s'", 1, $message, $current, $name);
}