You are here

function devel_generate_content_form_submit in Devel 6

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

FormAPI submission to generate nodes.

File

./devel_generate.module, line 197

Code

function devel_generate_content_form_submit($form_id, &$form_state) {
  $form_state['values']['node_types'] = array_filter($form_state['values']['node_types']);
  if (!$form_state['values']['kill_content'] && $form_state['values']['num_nodes'] <= 50 && $form_state['values']['max_comments'] <= 10) {
    require_once 'devel_generate.inc';
    devel_generate_content($form_state);
  }
  else {
    devel_batch_generate_content($form_state);
  }
}