Skip to content

Instantly share code, notes, and snippets.

@reatcory
Last active December 10, 2015 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reatcory/4381119 to your computer and use it in GitHub Desktop.
Save reatcory/4381119 to your computer and use it in GitHub Desktop.
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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment