function bynder_batch_reload_derivatives in Bynder 7
Batch callback to fetch derivative information.
1 call to bynder_batch_reload_derivatives()
- bynder_form_submit in includes/
bynder.admin.inc - Admin form submit, force reloading derivatives the first time we save the form.
1 string reference to 'bynder_batch_reload_derivatives'
- bynder_form in includes/
bynder.admin.inc - Callback for /admin/configure/media/bynder.
File
- includes/
bynder.admin.inc, line 140
Code
function bynder_batch_reload_derivatives() {
variable_set('image_style_preview_image', drupal_get_path('module', 'image') . '/sample.png');
$batch = array(
'operations' => array(
array(
'bynder_get_brands_list',
array(),
),
array(
'bynder_batch_reload_derivatives_process',
array(),
),
array(
'bynder_batch_sync_old_bynder_media',
array(),
),
),
'finished' => 'bynder_batch_reload_derivatives_finished',
'title' => t('Batch to reload Bynder derivatives information'),
'init_message' => t('Bynder derivatives batch is starting...'),
'progress_message' => t('Processed @current out of @total.'),
'error_message' => t('Fix has encountered an error.'),
);
batch_set($batch);
}