From 76167df6c8286cd1885817d28d3a81f9eeceda7a Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Tue, 27 Nov 2012 15:09:16 +0000 Subject: [PATCH] islandora_ingest_get_steps no longer returns NULL values --- includes/ingest.form.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index 5651ad19..856f196b 100644 --- a/includes/ingest.form.inc +++ b/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) { $steps = array_merge($steps, module_invoke_all($hook, $configuration)); } + // Remove NULL values. + $steps = array_filter($steps); usort($steps, 'drupal_sort_weight'); return $steps; }