You are here

function privatemsg_devel_generate_kill_threads in Privatemsg 6.2

Same name and namespace in other branches
  1. 7.2 privatemsg.devel_generate.inc \privatemsg_devel_generate_kill_threads()

Handle the privatemsg_devel_generate_form request to kill all of the threads. This is used by both the batch and non-batch branches of the code.

2 calls to privatemsg_devel_generate_kill_threads()
privatemsg_devel_generate_batch_kill_threads in ./privatemsg.devel_generate.inc
privatemsg_devel_generate_threads in ./privatemsg.devel_generate.inc
Mass Message Generation

File

./privatemsg.devel_generate.inc, line 227

Code

function privatemsg_devel_generate_kill_threads() {
  db_query('DELETE FROM {pm_index}');
  db_query('DELETE FROM {pm_message}');
  $i = db_affected_rows();
  drupal_set_message(format_plural($i, 'Deleted one message', 'Deleted @count messages'));
}