|
|
@ -204,6 +204,9 @@ function islandora_solution_pack_form(array $form, array &$form_state, $solution |
|
|
|
); |
|
|
|
); |
|
|
|
foreach ($object_info as $object) { |
|
|
|
foreach ($object_info as $object) { |
|
|
|
$pid = $object['pid']; |
|
|
|
$pid = $object['pid']; |
|
|
|
|
|
|
|
$form['solution_pack']['table']['check'][$pid] = array( |
|
|
|
|
|
|
|
'#type' => 'checkbox', |
|
|
|
|
|
|
|
); |
|
|
|
$form['solution_pack']['table']['label'][$pid] = array( |
|
|
|
$form['solution_pack']['table']['label'][$pid] = array( |
|
|
|
'#type' => 'item', |
|
|
|
'#type' => 'item', |
|
|
|
'#markup' => $object['label'], |
|
|
|
'#markup' => $object['label'], |
|
|
@ -216,9 +219,6 @@ function islandora_solution_pack_form(array $form, array &$form_state, $solution |
|
|
|
'#type' => 'item', |
|
|
|
'#type' => 'item', |
|
|
|
'#markup' => $object['status'], |
|
|
|
'#markup' => $object['status'], |
|
|
|
); |
|
|
|
); |
|
|
|
$form['solution_pack']['table']['check'][$pid] = array( |
|
|
|
|
|
|
|
'#type' => 'checkbox', |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return $form; |
|
|
|
return $form; |
|
|
|
} |
|
|
|
} |
|
|
@ -846,17 +846,19 @@ function islandora_get_viewer_callback($viewer_id = NULL) { |
|
|
|
function theme_islandora_solution_pack_table($variables) { |
|
|
|
function theme_islandora_solution_pack_table($variables) { |
|
|
|
$form = $variables['form']; |
|
|
|
$form = $variables['form']; |
|
|
|
$rows = array(); |
|
|
|
$rows = array(); |
|
|
|
foreach ($form['label'] as $key => $element) { |
|
|
|
if (isset($form['label'])) { |
|
|
|
if (is_array($element) && element_child($key)) { |
|
|
|
foreach ($form['label'] as $key => $element) { |
|
|
|
$row = array(); |
|
|
|
if (is_array($element) && element_child($key)) { |
|
|
|
$row[] = array('data' => drupal_render($form['label'][$key])); |
|
|
|
$row = array(); |
|
|
|
$row[] = array('data' => drupal_render($form['pid'][$key])); |
|
|
|
$row[] = array('data' => drupal_render($form['check'][$key])); |
|
|
|
$row[] = array('data' => drupal_render($form['status'][$key])); |
|
|
|
$row[] = array('data' => drupal_render($form['label'][$key])); |
|
|
|
$row[] = array('data' => drupal_render($form['check'][$key])); |
|
|
|
$row[] = array('data' => drupal_render($form['pid'][$key])); |
|
|
|
$rows[] = array('data' => $row); |
|
|
|
$row[] = array('data' => drupal_render($form['status'][$key])); |
|
|
|
|
|
|
|
$rows[] = array('data' => $row); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$header = array(t('Label'), t('PID'), t('Status'), ''); |
|
|
|
$header = array('', t('Label'), t('PID'), t('Status')); |
|
|
|
|
|
|
|
|
|
|
|
$output = ''; |
|
|
|
$output = ''; |
|
|
|
$output .= theme('table', array( |
|
|
|
$output .= theme('table', array( |
|
|
|