@ -308,7 +308,7 @@ function islandora_islandora_edit_object($fedora_object) {
$supported_models = islandora_get_types();
$supported_models = islandora_get_types();
$output = "";
$output = "";
foreach ($fedora_object->models as $model) {
foreach ($fedora_object->models as $model) {
if ($supported_models[$model][ISLANDORA_EDIT_HOOK] == TRUE) {//another module is handling the view
if (isset($supported_models[$model][ISLANDORA_EDIT_HOOK]) && $supported_models[$model][ISLANDORA_EDIT_HOOK] == TRUE) {//another module is handling the view
return;
return;
}
}
}
}
@ -387,7 +387,7 @@ 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 ($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
return;
return;
}
}
}
}
@ -484,5 +484,14 @@ function islandora_preprocess_islandora_default(&$variables) {
}
}
function islandora_preprocess_islandora_default_edit(&$variables) {
function islandora_preprocess_islandora_default_edit(&$variables) {