Browse Source

updated createAddDatastream form to make the array that populates the dropdown associative

pull/105/head
ppound 14 years ago
parent
commit
5d3b82327b
  1. 6
      formClass.inc

6
formClass.inc

@ -697,6 +697,10 @@ class formClass {
); );
if (!empty($unused_dsids)) { if (!empty($unused_dsids)) {
$dsidsForForm = array();
foreach ($unused_dsids as $dsid){
$dsidsForForm[$dsid]=$dsid;
}
$form['stream_id'] = array( $form['stream_id'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Datastream ID'), '#title' => t('Datastream ID'),
@ -704,7 +708,7 @@ class formClass {
'#weight' => '-1', '#weight' => '-1',
'#description' => t('Datastream IDs defined by the content model.'), '#description' => t('Datastream IDs defined by the content model.'),
); );
$form['stream_id']['#options'] = $unused_dsids; $form['stream_id']['#options'] = $dsidsForForm;
} }
else { else {
$form['stream_id'] = array( $form['stream_id'] = array(

Loading…
Cancel
Save