You are here

function commerce_reset_batch_form in Commerce Reset 7

Batch form callback.

1 string reference to 'commerce_reset_batch_form'
commerce_reset_menu in ./commerce_reset.module
Implements hook_menu().

File

./commerce_reset.module, line 29

Code

function commerce_reset_batch_form() {
  $options = array();
  foreach (commerce_reset_reset_items() as $item) {
    $options[$item['callback']] = $item['description'];
  }
  $form['batch'] = array(
    '#type' => 'checkboxes',
    '#title' => 'Choose which tasks to run',
    '#options' => $options,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Go',
  );
  return $form;
}