Last active
December 10, 2015 04:28
-
-
Save reatcory/4381119 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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