You are here

function node_recur_node_recur_confirm_submit in Node recur 7

Same name and namespace in other branches
  1. 7.2 node_recur.pages.inc \node_recur_node_recur_confirm_submit()

Submit the node recur confirmation form

1 call to node_recur_node_recur_confirm_submit()
node_recur_node_form_submit in ./node_recur.module
Submit handler for the node recur form on the node form
1 string reference to 'node_recur_node_recur_confirm_submit'
node_recur_node_recur_confirm in ./node_recur.pages.inc
Confirm form for node recur

File

./node_recur.pages.inc, line 233

Code

function node_recur_node_recur_confirm_submit(&$form, &$form_state) {
  $node = $form['#node'];

  // Log this action
  watchdog('node_recur', 'Recurring the %type "%title" %count times.', array(
    '%type' => $node->type,
    '%title' => check_plain($node->title),
    '%count' => count($form['#start_dates']),
  ));

  // Start the batch
  module_load_include('inc', 'node_recur', 'node_recur.batch');
  node_recur_node_batch_start($node, $form['#start_dates'], $form['#end_dates']);
}