function progress_get_progress in Progress 7
Same name and namespace in other branches
- 8 progress.module \progress_get_progress()
- 6 progress.module \progress_get_progress()
Get progress
Parameters
string $name: Name of progress
Return value
object Object containing all the progress data
File
- ./
progress.module, line 136 - Progress framework for keeping track of progresses
Code
function progress_get_progress($name) {
$result = db_query("SELECT name, progress, message, start_stamp, end_stamp, current_stamp FROM {progress} WHERE name = :name", array(
':name' => $name,
))
->fetchObject();
if ($result) {
$result->start = $result->start_stamp;
$result->end = $result->end_stamp;
$result->current = $result->current_stamp;
}
return $result;
}