|
|
@ -422,6 +422,9 @@ function islandora_ingest_form_execute_consecutive_callback_steps(array $form, a |
|
|
|
function islandora_ingest_form_execute_callback_step(array $form, array &$form_state, array $step) { |
|
|
|
function islandora_ingest_form_execute_callback_step(array $form, array &$form_state, array $step) { |
|
|
|
$args = array(&$form_state); |
|
|
|
$args = array(&$form_state); |
|
|
|
$args = isset($step['do_function']['args']) ? array_merge($args, $step['do_function']['args']) : $args; |
|
|
|
$args = isset($step['do_function']['args']) ? array_merge($args, $step['do_function']['args']) : $args; |
|
|
|
|
|
|
|
if (isset($step['do_function']['file'])) { |
|
|
|
|
|
|
|
require_once DRUPAL_ROOT . '/' . drupal_get_path('module', $step['module']) . "/" . $step['do_function']['file']; |
|
|
|
|
|
|
|
} |
|
|
|
call_user_func_array($step['do_function']['function'], $args); |
|
|
|
call_user_func_array($step['do_function']['function'], $args); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -460,6 +463,9 @@ function islandora_ingest_form_undo_consecutive_callback_steps(array $form, arra |
|
|
|
function islandora_ingest_form_undo_callback_step(array $form, array &$form_state, array $step) { |
|
|
|
function islandora_ingest_form_undo_callback_step(array $form, array &$form_state, array $step) { |
|
|
|
$args = array(&$form_state); |
|
|
|
$args = array(&$form_state); |
|
|
|
$args = isset($step['undo_function']['args']) ? array_merge($args, $step['undo_function']['args']) : $args; |
|
|
|
$args = isset($step['undo_function']['args']) ? array_merge($args, $step['undo_function']['args']) : $args; |
|
|
|
|
|
|
|
if (isset($step['undo_function']['file'])) { |
|
|
|
|
|
|
|
require_once DRUPAL_ROOT . '/' . drupal_get_path('module', $step['module']) . "/" . $step['undo_function']['file']; |
|
|
|
|
|
|
|
} |
|
|
|
call_user_func_array($step['undo_function']['function'], $args); |
|
|
|
call_user_func_array($step['undo_function']['function'], $args); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|