Browse Source

allowances made for missing content models

pull/653/head
ajstanley 9 years ago
parent
commit
e760b32e4b
  1. 4
      islandora.module

4
islandora.module

@ -2189,9 +2189,9 @@ function islandora_islandora_overview_object(AbstractObject $object) {
} }
} }
} }
$header = count($rows) > 1 ? t('Content Models') : t('Content Model'); $headers = format_plural(count($rows), t('Content Model'), t('Content Models'));
$table = theme('table', array( $table = theme('table', array(
'header' => array($header), 'header' => array($headers),
'rows' => $rows, 'rows' => $rows,
'empty' => t('No Islandora content model associated with this object.'))); 'empty' => t('No Islandora content model associated with this object.')));
return array('cmodels' => $table); return array('cmodels' => $table);

Loading…
Cancel
Save