Browse Source

islandora_ingest_get_steps no longer returns NULL values

pull/203/head
Nigel Banks 12 years ago
parent
commit
76167df6c8
  1. 2
      includes/ingest.form.inc

2
includes/ingest.form.inc

@ -420,6 +420,8 @@ function islandora_ingest_get_steps(array $configuration) {
foreach (islandora_build_hook_list(ISLANDORA_INGEST_STEP_HOOK, $models) as $hook) { foreach (islandora_build_hook_list(ISLANDORA_INGEST_STEP_HOOK, $models) as $hook) {
$steps = array_merge($steps, module_invoke_all($hook, $configuration)); $steps = array_merge($steps, module_invoke_all($hook, $configuration));
} }
// Remove NULL values.
$steps = array_filter($steps);
usort($steps, 'drupal_sort_weight'); usort($steps, 'drupal_sort_weight');
return $steps; return $steps;
} }

Loading…
Cancel
Save