drupal_set_message(t('Cannot view object, object not found'), 'error');
return"";
}
global $user;
drupal_alter('islandora_view_object', $object); //modify object if required before it is passed along
$arr = module_invoke_all('islandora_view_object', $object, $user, $page_number, $page_size); //allow submodules to decide how to handle content base on object type
if ($arr[0] == NULL) {
drupal_set_message(t('No module registered to handle objects of type %s', array('%s' => $object->type)));
drupal_alter('islandora_view_object', $fedora_object); //modify object if required before it is passed along
$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) ) {
drupal_set_message(t('No module registered to handle objects of type %s', array('%s' => $fedora_object->objectProfile->objModels[0])));