Browse Source

No need to pass by reference, updated function doc.

pull/656/head
MorganDawe 9 years ago
parent
commit
3b7a01c9fd
  1. 4
      includes/ingest.form.inc

4
includes/ingest.form.inc

@ -486,7 +486,7 @@ function islandora_ingest_form_stepify(array $form, array &$form_state, array $s
} }
/** /**
* Append CModel label to the top of the step's form. * Append CModel label(s) to the top of the step's form.
* *
* @param array $form * @param array $form
* The Drupal form. * The Drupal form.
@ -500,7 +500,7 @@ function islandora_ingest_form_add_step_context(array &$form, array $form_state)
$items = array(); $items = array();
if (is_array($form_state['islandora']['shared_storage']['collection'])) { if (is_array($form_state['islandora']['shared_storage']['collection'])) {
// Form state config allows for multiple collection objects. // Form state config allows for multiple collection objects.
foreach ($form_state['islandora']['shared_storage']['collection'] as &$collection) { foreach ($form_state['islandora']['shared_storage']['collection'] as $collection) {
$policy = new CollectionPolicy($collection['COLLECTION_POLICY']->content); $policy = new CollectionPolicy($collection['COLLECTION_POLICY']->content);
$policy_content_models = $policy->getContentModels(); $policy_content_models = $policy->getContentModels();
$label = isset($policy_content_models[$value]) ? $policy_content_models[$value]['name'] : $fedora_cmodel->label; $label = isset($policy_content_models[$value]) ? $policy_content_models[$value]['name'] : $fedora_cmodel->label;

Loading…
Cancel
Save