|
|
@ -2180,13 +2180,13 @@ function islandora_islandora_overview_object(AbstractObject $object) { |
|
|
|
foreach ($cmodels as $cmodel) { |
|
|
|
foreach ($cmodels as $cmodel) { |
|
|
|
if ($cmodel != 'fedora-system:FedoraObject-3.0') { |
|
|
|
if ($cmodel != 'fedora-system:FedoraObject-3.0') { |
|
|
|
$o = islandora_object_load($cmodel); |
|
|
|
$o = islandora_object_load($cmodel); |
|
|
|
$rows[] = array(l($object->label, "islandora/object/{$o->id}")); |
|
|
|
$rows[] = array(l($o->label, "islandora/object/{$o->id}")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$header = count($rows) > 1 ? t('Content Models') : t('Content Model'); |
|
|
|
$header = count($rows) > 1 ? t('Content Models') : t('Content Model'); |
|
|
|
$table = theme('table', array( |
|
|
|
$table = theme('table', array( |
|
|
|
'header' => array($header), |
|
|
|
'header' => array($header), |
|
|
|
'rows' => $rows, |
|
|
|
'rows' => $rows, |
|
|
|
'empty' => t('No content model associated with this object.'))); |
|
|
|
'empty' => t('No Islandora content model associated with this object.'))); |
|
|
|
return array('cmodels' => $table); |
|
|
|
return array('cmodels' => $table); |
|
|
|
} |
|
|
|
} |
|
|
|