Browse Source

now as a renderable array

pull/653/head
ajstanley 9 years ago
parent
commit
f0bd3e9490
  1. 8
      islandora.module

8
islandora.module

@ -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(
'#type' => 'markup',
'#theme' => 'table', '#theme' => 'table',
'#header' => array($header), '#header' => array($header),
'#rows' => $rows, '#rows' => $rows,
'#empty' => t('No Islandora content model associated with this object.'), '#empty' => t('No Islandora content model associated with this object.')
); );
$rendered_table = drupal_render($table); return array('cmodels' => $table);
return array('cmodels' => $rendered_table);
} }

Loading…
Cancel
Save