You are here

function progress_initialize_progress in Progress 6

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

Initialize a progress

Parameters

string $name: Name of progress

string $message: Message for progress

Return value

mixed Result from db_query()

File

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

Code

function progress_initialize_progress($name, $message) {
  progress_remove_progress($name);
  $current = microtime(TRUE);
  return db_query("INSERT INTO {progress} (name, progress, message, start_stamp, current_stamp) VALUES('%s', %f, '%s', %f, %f)", $name, 0, $message, $current, $current);
}