Browse Source

less batches

pull/509/head
willtp87 11 years ago
parent
commit
69188416bd
  1. 15
      includes/derivatives.inc

15
includes/derivatives.inc

@ -21,6 +21,13 @@ function islandora_run_derivatives(AbstractObject $object, $dsid) {
islandora_derivative_logging($logging_results); islandora_derivative_logging($logging_results);
} }
else { else {
$operations = islandora_do_batch_derivatives(
$object,
array(
'source_dsid' => $dsid,
)
);
if ($operations) {
batch_set( batch_set(
// Title won't show for batch in a batch. // Title won't show for batch in a batch.
array( array(
@ -32,15 +39,11 @@ function islandora_run_derivatives(AbstractObject $object, $dsid) {
array('@label' => $object->label) array('@label' => $object->label)
), ),
'file' => drupal_get_path('module', 'islandora') . '/includes/regenerate_derivatives.form.inc', 'file' => drupal_get_path('module', 'islandora') . '/includes/regenerate_derivatives.form.inc',
'operations' => islandora_do_batch_derivatives( 'operations' => $operations,
$object,
array(
'source_dsid' => $dsid,
)
),
) )
); );
} }
}
} }
/** /**

Loading…
Cancel
Save