function progress_set_intervalled_progress in Progress 8
Same name and namespace in other branches
- 6 progress.module \progress_set_intervalled_progress()
- 7 progress.module \progress_set_intervalled_progress()
Set intervalled progress
File
- ./
progress.module, line 86 - Progress framework for keeping track of progresses
Code
function progress_set_intervalled_progress($name, $message, $progress, $interval = NULL) {
static $set = array();
if (isset($interval, $set[$name])) {
if ($set[$name] + $interval > microtime(TRUE)) {
return TRUE;
}
}
$result = progress_set_progress($name, $message, $progress);
$set[$name] = microtime(TRUE);
return $result;
}