|
|
|
@ -2180,13 +2180,13 @@ function islandora_islandora_overview_object(AbstractObject $object) {
|
|
|
|
|
foreach ($cmodels as $cmodel) { |
|
|
|
|
if ($cmodel != 'fedora-system:FedoraObject-3.0') { |
|
|
|
|
$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'); |
|
|
|
|
$table = theme('table', array( |
|
|
|
|
'header' => array($header), |
|
|
|
|
'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); |
|
|
|
|
} |
|
|
|
|