From a9443ac5cbb943db3bbad4375dc056c9e2d68611 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Fri, 7 Feb 2014 10:12:51 -0400 Subject: [PATCH] Update islandora.api.php Added hook_alter for ingest steps. --- islandora.api.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/islandora.api.php b/islandora.api.php index 51aeb343..0534ffe7 100644 --- a/islandora.api.php +++ b/islandora.api.php @@ -466,6 +466,19 @@ function hook_islandora_ingest_steps(array $form_state) { ), ); } + +/** + * Alter the generated ingest steps. + * + * @param array $steps + * An array of steps as generated by hook_islandora_ingest_steps(). + * + * @param array $form_state + * An array containing the Drupal form_state. + */ +function hook_islandora_ingest_steps_alter(array &$steps, array &$form_state) { +} + /** * Content model specific version of hook_islandora_ingest_steps(). * @@ -479,6 +492,18 @@ function hook_islandora_ingest_steps(array $form_state) { function hook_CMODEL_PID_islandora_ingest_steps(array $form_state) { } +/** +* Alter the generated ingest steps for the given content model. + * + * @param array $steps + * An array of steps as generated by hook_islandora_ingest_steps(). + * + * @param array $form_state + * An array containing the Drupal form_state. + */ +function hook_CMODEL_PID_islandora_ingest_steps_alter(array &$steps, array &$form_state) { +} + /** * Object-level access callback hook. *