function pathauto_entity_bulk_update_batch_process in Pathauto Entity 7
Common batch processing callback for entity-based operations.
Required to load the proper batch file.
Overrides pathauto_bulk_update_batch_process().
See also
pathauto_entity_bulk_update_form_submit()
pathauto_bulk_update_batch_process()
1 string reference to 'pathauto_entity_bulk_update_batch_process'
- pathauto_entity_bulk_update_form_submit in includes/
pathauto_entity.admin.inc - Form submit handler for path alias bulk update form.
File
- includes/
pathauto_entity.batch.inc, line 31 - Pathauto Entity batch callback implementations.
Code
function pathauto_entity_bulk_update_batch_process($callback, $settings, &$context) {
if (!empty($settings->batch_file)) {
require_once DRUPAL_ROOT . '/' . $settings->batch_file;
}
// When dealing with entity aliases we also need to pass $settings array to
// callback function, so it knows which entity types to generate aliases for.
if ($callback == 'pathauto_entity_bulk_update_batch_callback') {
return $callback($settings, $context);
}
else {
return $callback($context);
}
}