|
|
@ -80,7 +80,10 @@ function islandora_ingest_form(array $form, array &$form_state, array $configura |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_ingest_form_init_form_state_storage(array &$form_state, array $configuration) { |
|
|
|
function islandora_ingest_form_init_form_state_storage(array &$form_state, array $configuration) { |
|
|
|
if (empty($form_state['islandora'])) { |
|
|
|
if (empty($form_state['islandora'])) { |
|
|
|
$objects = isset($configuration['objects']) : array(); |
|
|
|
$objects = isset($configuration['objects']); |
|
|
|
|
|
|
|
if (empty($objects)) { |
|
|
|
|
|
|
|
$objects[] = islandora_ingest_form_prepare_new_object($configuration); |
|
|
|
|
|
|
|
} |
|
|
|
$configuration['models'] = isset($configuration['models']) ? $configuration['models'] : array(); |
|
|
|
$configuration['models'] = isset($configuration['models']) ? $configuration['models'] : array(); |
|
|
|
// Make sure the models actually exist. |
|
|
|
// Make sure the models actually exist. |
|
|
|
foreach ($configuration['models'] as $key => $model) { |
|
|
|
foreach ($configuration['models'] as $key => $model) { |
|
|
|