@ -361,7 +362,7 @@ function islandora_view_object($fedora_object = NULL) {
$arr = module_invoke_all('islandora_view_object', $fedora_object, $user, $page_number, $page_size); //allow submodules to decide how to handle content base on object type
$arr = module_invoke_all('islandora_view_object', $fedora_object, $user, $page_number, $page_size); //allow submodules to decide how to handle content base on object type
if (empty($arr)) {
if (empty($arr)) {
//TODO: make sure we iterate over the array as they will be more then one cmodel per object
//TODO: make sure we iterate over the array as they will be more then one cmodel per object
drupal_set_message(t('there was an error loading the view for islandora object %s', array('%s' => $object_id)), 'error');
drupal_set_message(t('there was an error loading the view for Islandora object "%s"', array('%s' => $fedora_object->label)), 'error');
return "";
return "";
}
}
arsort($arr);
arsort($arr);
@ -384,12 +385,12 @@ function islandora_islandora_view_object($object) {
$supported_models = islandora_get_types();
$supported_models = islandora_get_types();
$output = "";
$output = "";
foreach ($object->models as $model) {
foreach ($object->models as $model) {
if (isset($supported_models[$model][ISLANDORA_VIEW_HOOK]) && (boolean) $supported_models[$model][ISLANDORA_VIEW_HOOK] === TRUE) {//another module is handling the view
if (isset($supported_models[$model][ISLANDORA_VIEW_HOOK]) && (boolean) $supported_models[$model][ISLANDORA_VIEW_HOOK] === TRUE) {//another module is handling the view