$output .= $key . '<br />' . $value; //if we have multiple modules handle one cmodel we need to iterate over multiple
$output .= $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?
//we could do another module invoke all here to build the edit tab with a default implemented in this module?
return $output;
return $output;
}
}
function islandora_edit_properties($object_id){
return 'edit properties '.$object_id;
}
/**
/**
* builds a default page for the edit tab
* builds a default page for the edit tab
* @param object $fedora_object
* @param object $fedora_object
@ -429,7 +469,7 @@ function islandora_view_object($object_id) {
//module_invoke_all(islandora_display($arr)),
//module_invoke_all(islandora_display($arr)),
$output = "";
$output = "";
foreach ($arr as $key => $value) {
foreach ($arr as $key => $value) {
$output .= $key . '<br />' . $value; //if we have multiple modules handle one cmodel we need to iterate over multiple
$output .= $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?
//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
return $output; //just an example as we could have more then one array element
@ -444,14 +484,14 @@ function islandora_view_object($object_id) {
function islandora_islandora_view_object($object) {
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]) && $supported_models[$model][ISLANDORA_VIEW_HOOK] == TRUE) {//another module is handling the view
if (isset($supported_models[$model][ISLANDORA_VIEW_HOOK]) && $supported_models[$model][ISLANDORA_VIEW_HOOK] == TRUE) {//another module is handling the view