|
|
@ -2188,13 +2188,13 @@ function islandora_islandora_overview_object(AbstractObject $object) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$header = count($rows) > 1 ? t('Content Models') : t('Content Model'); |
|
|
|
$header = format_plural(count($rows), 'Content Model', 'Content Models'); |
|
|
|
$table = array( |
|
|
|
$table = array( |
|
|
|
'#theme' => 'table', |
|
|
|
'#type' => 'markup', |
|
|
|
'#header' => array($header), |
|
|
|
'#theme' => 'table', |
|
|
|
'#rows' => $rows, |
|
|
|
'#header' => array($header), |
|
|
|
'#empty' => t('No Islandora content model associated with this object.'), |
|
|
|
'#rows' => $rows, |
|
|
|
); |
|
|
|
'#empty' => t('No Islandora content model associated with this object.') |
|
|
|
$rendered_table = drupal_render($table); |
|
|
|
); |
|
|
|
return array('cmodels' => $rendered_table); |
|
|
|
return array('cmodels' => $table); |
|
|
|
} |
|
|
|
} |
|
|
|