You are here

function devel_generate_content_form_submit in Devel 7

Same name and namespace in other branches
  1. 5 devel_generate.module \devel_generate_content_form_submit()
  2. 6 devel_generate.module \devel_generate_content_form_submit()

FormAPI submission to generate nodes.

File

devel_generate/devel_generate.module, line 252

Code

function devel_generate_content_form_submit($form, &$form_state) {
  module_load_include('inc', 'devel_generate', 'devel_generate');
  if ($form_state['values']['num_nodes'] <= 50 && $form_state['values']['max_comments'] <= 10) {
    module_load_include('inc', 'devel_generate');
    devel_generate_content($form_state);
  }
  else {
    module_load_include('inc', 'devel_generate', 'devel_generate_batch');
    devel_generate_batch_content($form_state);
  }
}