You are here

function drush_computing_purge in Drupal Computing 7

File

./computing.drush.inc, line 147
Drupal Hybrid Computing drush interface. To use this, please install Drush at http://drupal.org/project/drush

Code

function drush_computing_purge() {
  $force = drush_get_option('force', NULL);
  if (!$force) {
    $n = db_query("DELETE FROM {computing_record} WHERE status IS NOT NULL")
      ->rowCount();
  }
  else {
    $n = db_query("DELETE FROM {computing_record}")
      ->rowCount();
  }
  drush_print("Purge computing_record table successful. {$n} records purged.");
}