From c57d2df00d44b64c716781b1a8bcea827706ac18 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Tue, 12 Mar 2013 12:43:09 -0300 Subject: [PATCH] Allow for altering of forms in the stepped ingest process. --- includes/ingest.form.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index e2e97d5f..9434e9e4 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -295,11 +295,15 @@ function islandora_ingest_form_execute_step(array $form, array &$form_state) { * @return array * The stepified drupal form definition for the given step. */ -function islandora_ingest_form_stepify(array $form, array &$form_state) { +function islandora_ingest_form_stepify(array $form, array &$form_state, $step) { $first_step = islandora_ingest_form_on_first_step($form_state); $last_step = islandora_ingest_form_on_last_step($form_state); $form['prev'] = $first_step ? NULL : islandora_ingest_form_previous_button($form_state); $form['next'] = $last_step ? islandora_ingest_form_ingest_button($form_state) : islandora_ingest_form_next_button($form_state); + + // Allow for a hook_form_FORM_ID_alter(). + drupal_alter(array('form_' . $step['form_id'], 'form'), $form, $form_state, $step['form_id']); + return $form; }