From 4def002dc31ea97aa53b868a49a21acbada6e309 Mon Sep 17 00:00:00 2001 From: ajstanley Date: Fri, 29 Jul 2016 14:15:41 -0300 Subject: [PATCH] converted output to render array --- islandora.module | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/islandora.module b/islandora.module index 82f891ba..fd98df9e 100644 --- a/islandora.module +++ b/islandora.module @@ -2175,7 +2175,6 @@ function islandora_islandora_get_breadcrumb_query_predicates(AbstractObject $obj * Implements hook_islandora_overview_object(). */ function islandora_islandora_overview_object(AbstractObject $object) { - $cmodels = $object->models; $rows = array(); foreach ($cmodels as $cmodel) { @@ -2190,9 +2189,12 @@ function islandora_islandora_overview_object(AbstractObject $object) { } } $header = count($rows) > 1 ? t('Content Models') : t('Content Model'); - $table = theme('table', array( - 'header' => array($header), - 'rows' => $rows, - 'empty' => t('No Islandora content model associated with this object.'))); - return array('cmodels' => $table); + $table = array( + '#theme' => 'table', + '#header' => array($header), + '#rows' => $rows, + '#empty' => t('No Islandora content model associated with this object.') + ); + $rendered_table = drupal_render($table); + return array('cmodels' => $rendered_table); }