You are here

function location_taxonomize_bulk_taxonomize in Location Taxonomize 7.2

Same name and namespace in other branches
  1. 7 location_taxonomize.module \location_taxonomize_bulk_taxonomize()

Calls the Batch API to run the bulk operation function

1 string reference to 'location_taxonomize_bulk_taxonomize'
location_taxonomize_form in ./location_taxonomize.admin.inc
Location Taxonomize administration form

File

./location_taxonomize.module, line 439

Code

function location_taxonomize_bulk_taxonomize($form, $form_state) {
  $source = _location_taxonomize_get_source();
  $batch_function = $source . '_bulk_taxonomize_op';
  $batch = array(
    'operations' => array(
      array(
        $batch_function,
        array(
          $form_state,
        ),
      ),
    ),
    'finished' => 'location_taxonomize_bulk_taxonomize_finished',
    'title' => t('Taxonomizing Locations'),
    'init_message' => t('Initializing...'),
    'progress_message' => t('Processed @current out of @total.'),
    'error_message' => t('Bulk Taxonomize encountered an error.'),
  );
  batch_set($batch);
}