function privatemsg_devel_generate_kill_threads in Privatemsg 7.2
Same name and namespace in other branches
- 6.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 217
Code
function privatemsg_devel_generate_kill_threads() {
db_delete('pm_index')
->execute();
$i = db_delete('pm_message')
->execute();
drupal_set_message(format_plural($i, 'Deleted one message', 'Deleted @count messages'));
}