@ -277,15 +277,15 @@ function islandora_view_object($object_id) {
}
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)) {
if (empty($arr)) {
//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' => $object_id)),'error');
return "";
}
//module_invoke_all(islandora_display($arr)),
$output = "";
foreach($arr as $key => $value){
$output .= $key .'<br />'.$value; //if we have multiple modules handle one cmodel we need to iterate over multiple
foreach($arr as $key => $value){
$output .= $key .'<br />'.$value; //if we have multiple modules handle one cmodel we need to iterate over multiple
}
//we could do another module invoke all here to build the edit tab with a default implemented in this module?
return $output; //just an example as we could have more then one array element
@ -297,14 +297,14 @@ function islandora_view_object($object_id) {
* @param string $object_id
* @return string
*/
function islandora_islandora_view_object($object){
function islandora_islandora_view_object($object){