You are here

function privatemsg_devel_generate_form_submit in Privatemsg 6.2

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

Submit; Integrates with Devel Generate.

See also

privatemsg_devel_generate_form()

privatemsg_devel_generate_form_validate()

File

./privatemsg.devel_generate.inc, line 136

Code

function privatemsg_devel_generate_form_submit($form_id, &$form_state) {
  if (!$form_state['values']['kill_content'] && $form_state['values']['num_threads'] <= 50 && $form_state['values']['max_thread_length'] <= 10) {
    privatemsg_devel_generate_threads($form_state);
  }
  else {
    privatemsg_devel_batch_generate_threads($form_state);
  }
}