You are here

function nodequeue_generate_form_submit in Nodequeue 7.3

Same name and namespace in other branches
  1. 5.2 nodequeue_generate.module \nodequeue_generate_form_submit()
  2. 6.2 nodequeue_generate.module \nodequeue_generate_form_submit()
  3. 7.2 nodequeue_generate.module \nodequeue_generate_form_submit()

File

./nodequeue_generate.module, line 80

Code

function nodequeue_generate_form_submit($form, &$form_state) {

  // Get a list of all nodequeues that need to be re-populated and repopulate
  // them.
  $queues = array_keys(array_filter($form_state['values']['nodequeues']));
  $nodes_limit = $form_state['values']['nodequeue_generate_nodes_limit'];
  nodequeue_generate_rehash();
  nodequeue_generate_repopulate_queues($queues, $nodes_limit);
}