You are here

function progress_set_progress in Progress 6

Same name and namespace in other branches
  1. 8 progress.module \progress_set_progress()
  2. 7 progress.module \progress_set_progress()

Set progress

Parameters

string $name: Name of progress

string $message: Message for progress

double $progress: Current progress (0 - 1)

Return value

mixed Result from db_query()

1 call to progress_set_progress()
progress_set_intervalled_progress in ./progress.module
Set intervalled progress Use when you don't need to spam the progress table every time.

File

./progress.module, line 41
Progress framework for keeping track of progresses

Code

function progress_set_progress($name, $message, $progress) {
  $current = microtime(TRUE);
  return db_query("UPDATE {progress} SET progress = %f, message = '%s', current_stamp = %f WHERE name = '%s'", $progress, $message, $current, $name);
}